cruxports/prt-utils/Pkgfile

33 lines
1.1 KiB
Plaintext

# Description: port management scripts for CRUX, with support for renamed tarballs
# URL: http://crux.nu/Wiki/PrtUtils
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: elfutils
name=prt-utils
version=1.1.4
release=2
source=(http://crux.nu/files/tools/prt-utils/$name-$version.tar.xz \
dllist.1.patch dllist.patch portspage.patch prtsweep prtwash prtsweep.1 prtwash.1 pkgfile.5)
build() {
cd $name-$version
# enable the download listing tool to recognize already-downloaded sources
patch -p1 < $SRC/dllist.1.patch
patch -p1 < $SRC/dllist.patch
# augment portspage with the ability to find and print the signify public key
patch -p1 < $SRC/portspage.patch
# enable the cleanup tools to recognize sources that have been renamed
cp $SRC/prtsweep* .
cp $SRC/prtwash* .
make
make DESTDIR=$PKG install
# put the documentation of Pkgfile syntax in more convenient location
install -d $PKG/usr/share/man/man5
gzip -c $SRC/pkgfile.5 > $PKG/usr/share/man/man5/Pkgfile.5.gz
install -d $PKG/etc/revdep.d
}