blob: 95fac0d039acc0a525ac53f007635947351a1770 (
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
|
# 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"
|