You are not logged in.
Needlessly complicated PKGBUILD follows ( I was extremely bored ).
This PKGBUILD is designed to work with my experimental changes to makepkg, but accomodates those (everyone) who aren't using them.
# Contributor: Michael Baehr <usemike@spamblocked.com>
pkgname=ods2
pkgver=1
pkgrel=1
pkgdesc="A utility to mount and manipulate VMS-formatted volumes"
source=(ftp://ftp.process.com/vms-freeware/fileserv/$pkgname.zip)
url=(http://vms.process.com/scripts/fileserv/fileserv.com?ODS2)
md5sums=(722ea8fda67a8fd2e5fe237584951dda)
depends=(glibc)
buildmsg() {
if [ "$USE_COLOR" = "Y" -o "$USE_COLOR" = "y" ]; then
echo -e " 33[1;1m[33[1;0m33[1;32m${1}33[1;0m33[1;1m]33[1;0m $2"
else
echo " [${1}] $2"
fi
}
prebuild() {
cd $startdir/src
msg "Cleaning up build dir..."
for i in phy*.c; do if [ $i != phyunix.c ]; then rm $i; fi; done
rm *.exe makefile* *.com *.mms
chmod -x *
}
# This package has no Linux makefile, so we just build it manually
build() {
[ -z "$EXPERIMENTAL_MAKEPKG" ] && prebuild
cd $startdir/src
for i in *.c; do if [ $i != "tab.c" ]; then
buildmsg CC ${i/.c/.o}; cc -c $i
fi; done
buildmsg LD ods2
cc -o ods2 *.o 2>/dev/null
buildmsg CC tab
cc -o tab tab.c
mkdir -p $startdir/pkg/usr/bin
cp ods2 $startdir/pkg/usr/bin/
cp tab $startdir/pkg/usr/bin/
}
Offline