aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmowgli/APKBUILD
blob: fa455b9799962d1d8d22e51a8f719ad8b9d54e0c (plain) (blame)
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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libmowgli
pkgver=2.0.0
pkgrel=0
pkgdesc="mowgli is a framework designed to reduce writing of boilerplate code"
url="http://atheme.org/project/mowgli"
arch="all"
license="ISC"
depends=
makedepends=
install=
subpackages="$pkgname-dev"
source="https://github.com/atheme/libmowgli-2/archive/libmowgli-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	# workaround bug in busybox
	sed -e "/touch/s/0001010000/200001010000/g" \
		-i configure
}

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="0b8cf8b66d745d40f186e3cbd22fdc0e  libmowgli-2.0.0.tar.gz"
sha256sums="fd48e74f1f706b436e0f25c3d3d63753e9c066ef88e662cd34303ccd3b780798  libmowgli-2.0.0.tar.gz"
sha512sums="220254c6083fcce5a7cf4dfc0684a15db61aafc371570f74af8be6fb8e4562945dc241bb79539eafd440150573f39153156fb912628f9bc11854ecefdafe3f95  libmowgli-2.0.0.tar.gz"