aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libuniso/APKBUILD
blob: 708fa14b1dc9f2058e9ca80ec579ccfeba7de137 (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
53
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libuniso
pkgver=0.1
pkgrel=1
pkgdesc="Library to unpack files from CDROM (ISO-9660) images"
url="http://code.google.com/p/libuniso"
arch="all"
license="LGPLv2.1"
depends=""
depends_dev=""
makedepends="lua-dev"
install=""
subpackages="$pkgname-dev lua-uniso:_lua"
source="http://libuniso.googlecode.com/files/libuniso-$pkgver.tar.bz2
	musl-missing-typesh.patch"

_builddir="$srcdir"/libuniso-$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"
	echo ENABLE_LUA=yes > config.mk
	echo ENABLE_SHARED=yes >> config.mk
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

_lua() {
	pkgdesc="Lua module for libuniso"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/lua "$subpkgdir"/usr/lib/
}

md5sums="9c1e65ceecce5786ff33c5dd82bea897  libuniso-0.1.tar.bz2
e0948a860bbc3d93bfa7ebf25e0440ec  musl-missing-typesh.patch"
sha256sums="fc6a80200d6f8b20a99cd888cbcb0d55c8b45c5a3a6b540b99bbedb54a0248ad  libuniso-0.1.tar.bz2
9840e7c7a2d0459e8f7652d901b172de4fdcf6de46461b7c56fac127b3dda142  musl-missing-typesh.patch"
sha512sums="dea27691b3e53bd6d7ff4c3530cb0e3d8c353bf03cbd7057910f37aa478fc95d66d4300a4dfa1c410957fafbce2d28e0b39a4e34928f6b0a562d3d6043e0f8e6  libuniso-0.1.tar.bz2
56db43a674afc969f742524680eb02ae9685818022d4310ed8d1a6c727f5a185ccee9ed6553140b91403053311dd89a30d00602d4ee9d29bb3a96406d0462c95  musl-missing-typesh.patch"