diff options
Diffstat (limited to 'main/cksfv/APKBUILD')
-rw-r--r-- | main/cksfv/APKBUILD | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/main/cksfv/APKBUILD b/main/cksfv/APKBUILD index b02f8b9e19..931ae25190 100644 --- a/main/cksfv/APKBUILD +++ b/main/cksfv/APKBUILD @@ -2,26 +2,42 @@ # Maintainer: Carlo Landmeter <clandmeter@gmail.com> pkgname=cksfv pkgver=1.3.14 -pkgrel=2 +pkgrel=3 pkgdesc="Simple File Verification" url="http://zakalwe.fi/~shd/foss/cksfv" arch="all" -license="GPL" -depends= +license="GPL2+" +depends="" subpackages="$pkgname-doc" -source="http://zakalwe.fi/~shd/foss/cksfv/files/${pkgname}-${pkgver}.tar.bz2" +source="http://zakalwe.fi/~shd/foss/cksfv/files/$pkgname-$pkgver.tar.bz2" + +_builddir=$srcdir/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} build() { - cd "$srcdir/$pkgname-$pkgver" - + cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ || return 1 make || return 1 - install -cD src/cksfv "$pkgdir"/usr/bin/cksfv - install -cD cksfv.1 "$pkgdir"/usr/share/man/man1/cksfv.1 +} + +package() { + cd "$_builddir" + install -cD src/cksfv "$pkgdir"/usr/bin/cksfv || return 1 + install -cD cksfv.1 "$pkgdir"/usr/share/man/man1/cksfv.1 || return 1 } md5sums="138bff42ab23fbba8cca0ae14b2d9e52 cksfv-1.3.14.tar.bz2" +sha256sums="8f3c246f3a4a1f0136842a2108568297e66e92f5996e0945d186c27bca07df52 cksfv-1.3.14.tar.bz2" +sha512sums="016c2f61632980678957fe4b5bc9ecb30360efd548ff09bfbb7a31cc6fc36f6fe7936d3d819fe468a6208c71f8b625662aa3ae0abd668435d7273e149d7e4519 cksfv-1.3.14.tar.bz2" |