aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/microxml/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/microxml/APKBUILD b/testing/microxml/APKBUILD
new file mode 100644
index 0000000000..323b3c6faf
--- /dev/null
+++ b/testing/microxml/APKBUILD
@@ -0,0 +1,46 @@
+# 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://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+giturl="git://dev.freecwmp.org/microxml"
+
+_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"