aboutsummaryrefslogtreecommitdiffstats
path: root/main/cksfv/APKBUILD
blob: 931ae25190589004d9f85cf0d77004730687c39d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=cksfv
pkgver=1.3.14
pkgrel=3
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
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 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"