aboutsummaryrefslogtreecommitdiffstats
path: root/main/sfic/APKBUILD
blob: f2c82edb0e0aac01a7ee1988dfe1e7daf9d4dff7 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
pkgdesc="Small and Simple File Integrity Checker"
pkgname=sfic
pkgver=0.1.7
pkgrel=5
depends=
arch="all"
license=GPL
makedepends="autoconf automake tdb-dev"
depends=
url=http://sfic.sourceforge.net
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	$pkgname-0.1.7-signal.patch
	limits.patch
	automake.patch"

subpackages="$pkgname-doc"

_builddir="$srcdir"/sfic-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	sed -i -e 's/^        /\t/' src/Makefile.am || return 1
	aclocal
	autoconf
	automake --add-missing || return 1
}

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make install DESTDIR="$pkgdir"
}

md5sums="6197f7a1e8b0fc4887d4573f67b7bb81  sfic-0.1.7.tar.gz
e0c284f8b4e355b3ea52927fb02e163a  sfic-0.1.7-signal.patch
c316f8ef8abf1be61d805017daed0956  limits.patch
589e32798726f5da2c66eed34f178591  automake.patch"
sha256sums="79b08df2a51adf334081482971b76f500c6b1763fed09959d1d9a33de9029525  sfic-0.1.7.tar.gz
cbee58eb542f0ad8fb8cc9f71d8edca0f8827cb97ba27c8d5cc1acb295e13612  sfic-0.1.7-signal.patch
788ed51e2f63ff41763bb9556635398163615356a070f6f7ac41fa7ba7bd47a7  limits.patch
06a760b07d47f4ca6c3b4bc6ac7ea6fdeaccabd71edeb6d7c8c117686067589f  automake.patch"
sha512sums="99c0d395922e2e243dd12a4ba84222e2b5b8a6de1e3d350f4e2dc4cba9c24511a249edcef161bf9eabe3a98491dff10e67c7dd7cf80f20f09611d24c1982645e  sfic-0.1.7.tar.gz
f405b9c07160bd3db613fbf78caa5c898e2cee152e92f701783d99a310b6a50a00d313b8fba88d6308a165697fd12265739ecbfae413a39f3ab5120228efd66c  sfic-0.1.7-signal.patch
efd77cb8820bd29d6206d8de7647d16da7615c9a97382eadbe03bb54525ae430147abbe2986e3a22439b5ef7ba9feb6080d85841262a8a03f0aff53fc0a0a501  limits.patch
b1f888e231fd0079067ff5904f42b430a11ad0fc8c846cf085318811e1d828ecc2251240472d71d14c3090669123d1a0ce24c987e86b7eb3977eb3e520a969a4  automake.patch"