aboutsummaryrefslogtreecommitdiffstats
path: root/main/libguess/APKBUILD
blob: 6f323aead72d57675d07788d282cd15e34407adb (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libguess
pkgver=1.1
pkgrel=1
pkgdesc="extremely fast character set guessing library"
url="http://atheme.org/project/libguess"
arch="all"
license="ISC"
depends=
makedepends="libmowgli-dev autoconf"
install=
subpackages="$pkgname-dev"
source="http://distfiles.atheme.org/$pkgname-$pkgver.tar.gz
	libmowgli2.patch"

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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	autoconf
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

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

md5sums="efc2d53c30e47ffccae7148e53433396  libguess-1.1.tar.gz
be38a6404cde9b75945ace91fa740dfe  libmowgli2.patch"
sha256sums="e3c9ad3102c9447c591131674135795fb012e073d92e887a2b05c9bbbcbe913f  libguess-1.1.tar.gz
27936bd454f28990388ba38cf6d4355a63e2ed5e23f126f4be26924d818e07c0  libmowgli2.patch"
sha512sums="8501931058e6719485c3852c3189807a5eada084c56470bc14623c159a2bc8a2212d562775ed6f4f123d803953d0e1d43170df2158ab669e92089047c74c9a69  libguess-1.1.tar.gz
62754614391d0fce0d4f6ca9fa0624e93a3323f11ecb3ef7818644de0034bfe3661bdfce250ec78abfbdce406496231ba2a79bc474d829d24a6a92c889e1e5d2  libmowgli2.patch"