aboutsummaryrefslogtreecommitdiffstats
path: root/main/liblogging/APKBUILD
blob: 408fad6c9a687189231338a9db61466b43279864 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=liblogging
pkgver=1.0.5
pkgrel=0
pkgdesc="An easy to use logging library"
url="http://www.liblogging.org/"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://download.rsyslog.com/liblogging/liblogging-$pkgver.tar.gz"

_builddir="$srcdir"/liblogging-$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 \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-journal \
		--enable-stdlog \
		|| return 1
	make || return 1
}

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

md5sums="44b8ce2daa1bfb84c9feaf42f9925fd7  liblogging-1.0.5.tar.gz"
sha256sums="310dc1691279b7a669d383581fe4b0babdc7bf75c9b54a24e51e60428624890b  liblogging-1.0.5.tar.gz"
sha512sums="fd0c89b670bdf4d257d6a31b18b44940ba2edae84633ead6577f164e1ded93709445c35027a28f6e7fda4c984964c3446978eaf0abf843e31ecc11b979e2adde  liblogging-1.0.5.tar.gz"