aboutsummaryrefslogtreecommitdiffstats
path: root/main/liblogging/APKBUILD
blob: 597dbdbf2c46692c891db8d865b7f3916d3060d0 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=liblogging
pkgver=1.0.5
pkgrel=1
pkgdesc="An easy to use logging library"
url="http://www.liblogging.org/"
arch="all"
license="BSD"
depends=""
makedepends="autoconf automake libtool py-docutils"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/rsyslog/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$builddir"
	autoreconf -fvi
}

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="013e14e2588c85962157e0183e7c95a4  liblogging-1.0.5.tar.gz"
sha256sums="250065a2b877bc87a609dc46293978ceec31a03ecf191afa0883a4f2a092c6df  liblogging-1.0.5.tar.gz"
sha512sums="3b270cb94dfa68bd1c81b8be73d0ac19e62c7d499b720714bc3a5527fa0d216bc086dd653fe64a4f04c25203e77e35aa699acc6b1948366c04cc70b74a237d5f  liblogging-1.0.5.tar.gz"