diff options
-rw-r--r-- | main/cksfv/APKBUILD | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/main/cksfv/APKBUILD b/main/cksfv/APKBUILD index 931ae25190..9a4d0b6bd8 100644 --- a/main/cksfv/APKBUILD +++ b/main/cksfv/APKBUILD @@ -2,42 +2,34 @@ # Maintainer: Carlo Landmeter <clandmeter@gmail.com> pkgname=cksfv pkgver=1.3.14 -pkgrel=3 +pkgrel=4 pkgdesc="Simple File Verification" url="http://zakalwe.fi/~shd/foss/cksfv" arch="all" license="GPL2+" -depends="" subpackages="$pkgname-doc" 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 -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ - --prefix=/usr \ - || return 1 - make || return 1 + --prefix=/usr + make +} + +check() { + cd "$builddir" + make check } 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 + cd "$builddir" + install -cD src/cksfv "$pkgdir"/usr/bin/cksfv + install -cD cksfv.1 "$pkgdir"/usr/share/man/man1/cksfv.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" |