aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmodplug/APKBUILD
blob: 252294623121d344914e9e327046b29c37aee046 (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
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmodplug
pkgver=0.8.8.3
pkgrel=0
pkgdesc="A MOD playing library"
url="http://modplug-xmms.sourceforge.net/"
arch="all"
license="custom"
depends=
makedepends=
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/modplug-xmms/$pkgname-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
	install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

md5sums="8a9c713f0f56894163ddc61f9a0d1f71  libmodplug-0.8.8.3.tar.gz"