summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/libmcs/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/libmcs/APKBUILD b/main/libmcs/APKBUILD
new file mode 100644
index 000000000..b21a1cddc
--- /dev/null
+++ b/main/libmcs/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=libmcs
+pkgver=0.7.2
+pkgrel=0
+pkgdesc="library for configuration system abstraction"
+url="http://atheme.org/project/mcs"
+arch="all"
+license="ISC"
+depends=
+makedepends="libmowgli-dev"
+install=
+subpackages="$pkgname-dev"
+source="http://distfiles.atheme.org/$pkgname-$pkgver.tgz"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # workaround bug in busybox
+ sed -e "/touch/s/0001010000/200001010000/g" \
+ -i configure
+}
+
+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
+}
+
+md5sums="c47fc81f3efacaa0a5a0b8fd14f9d48e libmcs-0.7.2.tgz"