aboutsummaryrefslogtreecommitdiffstats
path: root/main/liblogging/APKBUILD
blob: 44ba5a7fb261fa49da7ae2a1a4cae26637134376 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=liblogging
pkgver=1.0.4
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
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="034083ef1424a566fdeefc56a719691f  liblogging-1.0.4.tar.gz"
sha256sums="aceb5d2aa8bdc771ff66f407f9adf4176b654db63e34a8605795b68be537b81c  liblogging-1.0.4.tar.gz"
sha512sums="7d57a4d5d41ab2033dd57370c4511749f7965949a30eacaf36e7608acc64a32c42903dc1b5bb50c649dcb9a5ed91a2f0339d21aa0fc20a6a6144616dae556ccf  liblogging-1.0.4.tar.gz"