diff options
author | osch | 2018-04-06 20:24:42 +0200 |
---|---|---|
committer | osch | 2018-04-06 20:24:42 +0200 |
commit | 9d07dfb11435698a9c9cd5588e67d0b6bb3eee5f (patch) | |
tree | 4c4495c00ce279b79ae30a4b7fcbde1fb91de35d | |
download | aur-9d07dfb11435698a9c9cd5588e67d0b6bb3eee5f.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..af77a7273b3b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = luaexif + pkgdesc = Lua binding for libexif + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/minoki/luaexif + arch = x86_64 + license = MIT + depends = lua + depends = libexif + source = luaexif-1.0.tar.gz::https://github.com/minoki/luaexif/archive/v1.0.tar.gz + md5sums = 07ed104a450b76d5919cc8f46a5b4a2f + +pkgname = luaexif + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..26eaaa57b60a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: osch <oliver at luced de> +pkgname=luaexif +pkgver=1.0 +pkgrel=1 +epoch= +pkgdesc="Lua binding for libexif" +arch=('x86_64') +url="https://github.com/minoki/luaexif" +license=('MIT') +groups=() +depends=('lua' + 'libexif') +makedepends=() +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("$pkgname-$pkgver.tar.gz::https://github.com/minoki/$pkgname/archive/v$pkgver.tar.gz") +noextract=() +md5sums=() +validpgpkeys=() + +prepare() { + cd "$pkgname-$pkgver" +} + +build() { + cd "$pkgname-$pkgver" + make CFLAGS="-fPIC `pkg-config --cflags lua` `pkg-config --cflag libexif`" \ + LDFLAGS="-shared `pkg-config --libs lua` `pkg-config --libs libexif`" +} + +package() { + cd "$pkgname-$pkgver" + + install -d "$pkgdir`pkg-config --variable=INSTALL_CMOD lua`" + install exif.so "$pkgdir`pkg-config --variable=INSTALL_CMOD lua`/exif.so" + + install -d "$pkgdir/usr/share/licenses/$pkgname" + install -m644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname" +} +md5sums=('69b7b411634f6f5b91dd297f96e98ec7') |