aboutsummaryrefslogtreecommitdiffstats
path: root/main/sfic/APKBUILD
blob: 6e3365ae8a81885259a0e8afc8d5a830537d0cd2 (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
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sfic
pkgver=0.1.7
pkgrel=6
pkgdesc="Small and Simple File Integrity Checker"
url="http://sfic.sourceforge.net/"
arch="all"
license="GPL"
depends=""
makedepends="autoconf automake tdb-dev"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	sfic-0.1.7-signal.patch
	limits.patch
	automake.patch"

subpackages="$pkgname-doc"

builddir="$srcdir/$pkgname-$pkgver"

check() {
	cd "$builddir"
	make check
}

prepare() {
	default_prepare
	sed -i -e 's/^        /\t/' src/Makefile.am
	aclocal
	autoconf
	automake --add-missing
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir"
}

sha512sums="99c0d395922e2e243dd12a4ba84222e2b5b8a6de1e3d350f4e2dc4cba9c24511a249edcef161bf9eabe3a98491dff10e67c7dd7cf80f20f09611d24c1982645e  sfic-0.1.7.tar.gz
f405b9c07160bd3db613fbf78caa5c898e2cee152e92f701783d99a310b6a50a00d313b8fba88d6308a165697fd12265739ecbfae413a39f3ab5120228efd66c  sfic-0.1.7-signal.patch
efd77cb8820bd29d6206d8de7647d16da7615c9a97382eadbe03bb54525ae430147abbe2986e3a22439b5ef7ba9feb6080d85841262a8a03f0aff53fc0a0a501  limits.patch
b1f888e231fd0079067ff5904f42b430a11ad0fc8c846cf085318811e1d828ecc2251240472d71d14c3090669123d1a0ce24c987e86b7eb3977eb3e520a969a4  automake.patch"