aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/microxml/APKBUILD
blob: 59a1a6418b05f9ea9842cc1cf8436f6e458c115b (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=microxml
pkgver=0_git20150918
pkgrel=0
pkgdesc="Micro XML library"
url="http://www.freecwmp.org/"
arch="all"
license="GPL"
depends=
depends_dev=
makedepends="$depends_dev autoconf"
install=
subpackages=
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz"
giturl="git://dev.freecwmp.org/microxml"
disturl="dev.alpinelinux.org:/archive/$pkgname"

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

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

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

package() {
	cd "$_builddir"
	make DSTROOT="$pkgdir" install

	# remove the 2 lines below (and this) if there is no init.d script
	# install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

md5sums="4a18c6863d8e8defb955d1d21bdf796e  microxml-0_git20150918.tar.gz"
sha256sums="e1ccc83ff12c1ce00c70dd01d03cabcb09c39078c2b5af473fd0ce109c361c59  microxml-0_git20150918.tar.gz"
sha512sums="f0df12c28f7bdca8425cc0eb2c3104cc9eb77af89e7efae0810fa22224614f8f027e4454a3e41d529c71f5fb172af4aba5b1af5415d460012305cc6b6eda3568  microxml-0_git20150918.tar.gz"