aboutsummaryrefslogtreecommitdiffstats
path: root/main/cksfv
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-08-28 12:33:43 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-08-28 22:29:29 +0000
commit768e893de586f7760cc6213bd1f3b5a748979a04 (patch)
tree3f072d9a16e1042c483f2b71c942d6514d4b70ca /main/cksfv
parent90ffebffc7947638406998e6f2bb8475515c0898 (diff)
downloadaports-768e893de586f7760cc6213bd1f3b5a748979a04.tar.bz2
aports-768e893de586f7760cc6213bd1f3b5a748979a04.tar.xz
main/cksfv: modernize APKBUILD and add check
Diffstat (limited to 'main/cksfv')
-rw-r--r--main/cksfv/APKBUILD34
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"