aboutsummaryrefslogtreecommitdiffstats
path: root/main/libcddb/APKBUILD
blob: 3ca9d0619e36ee63c2ffa8ab1972ce8ae5212345 (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
# Contributor: Carlo Landmeter
# Maintainer: 
pkgname=libcddb
pkgver=1.3.2
pkgrel=2
pkgdesc="Library that implements the different protocols (CDDBP, HTTP, SMTP) to access data on a CDDB server (e.g. http://freedb.org)."
url="http://sourceforge.net/projects/libcddb/"
arch="all"
license="GPL"
depends=
makedepends=
if [ "$ALPINE_LIBC" != "eglibc" ]; then
	makedepends="libiconv-dev"
fi
install=
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"

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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	# apply patches here
}

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
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="8bb4a6f542197e8e9648ae597cd6bc8a  libcddb-1.3.2.tar.bz2"