aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua5.2-file-magic
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-07-11 15:53:26 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-07-11 15:53:26 +0300
commit15dc9d67da3baaba547994fca07248ad202e80cc (patch)
treef5ba43b5b2f949892c46cb962ae2e6c210d3b4f0 /main/lua5.2-file-magic
parent22b4d9f5e400b61dad560d5a1e7a27acbac9b0e2 (diff)
downloadaports-15dc9d67da3baaba547994fca07248ad202e80cc.tar.bz2
aports-15dc9d67da3baaba547994fca07248ad202e80cc.tar.xz
main/aconf: moved from testing (with dependencies)
Diffstat (limited to 'main/lua5.2-file-magic')
-rw-r--r--main/lua5.2-file-magic/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/main/lua5.2-file-magic/APKBUILD b/main/lua5.2-file-magic/APKBUILD
new file mode 100644
index 0000000000..95fac0d039
--- /dev/null
+++ b/main/lua5.2-file-magic/APKBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=lua5.2-file-magic
+pkgver=0.2
+pkgrel=0
+pkgdesc="Lua binding to libmagic"
+url="https://github.com/ncopa/lua-file-magic"
+arch="all"
+license="LGPL"
+depends=""
+depends_dev="lua5.2-dev file-dev"
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="lua-file-magic-$pkgver.tar.gz::https://github.com/ncopa/lua-file-magic/archive/v$pkgver.tar.gz"
+
+_builddir="$srcdir"/lua-file-magic-$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"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ luaarchdir=$(pkg-config --variable=INSTALL_CMOD lua5.2)
+ install -D magic.so "$pkgdir"/$luaarchdir/magic.so
+}
+
+md5sums="5a9cb6889c7ae3f60bae3e5790c12989 lua-file-magic-0.2.tar.gz"
+sha256sums="c2a4ee6117e0f5a4acdc4e092f5ae948d2b0bf6a2a6a68d97d6a9bf5f3f1bcb7 lua-file-magic-0.2.tar.gz"
+sha512sums="f107b27410a3acf1305536bed064fa730943369afbeaeadc4b723334d4c16c330fc8544e426fda223f5b10353d83d028f306a48ec5d6f6cb905fda45271b94c8 lua-file-magic-0.2.tar.gz"