mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-14 20:32:17 +01:00
41 lines
901 B
Plaintext
41 lines
901 B
Plaintext
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=lua-lgi
|
|
pkgver=0.5
|
|
pkgrel=0
|
|
pkgdesc="Lua binding using gobject-introspection"
|
|
url="http://github.com/pavouk/lgi"
|
|
arch="all"
|
|
license="MIT"
|
|
depends=""
|
|
depends_dev=""
|
|
makedepends="lua-dev gtk+-dev gobject-introspection-dev"
|
|
install=""
|
|
subpackages="$pkgname-doc"
|
|
source="https://github.com/downloads/pavouk/lgi/lgi-$pkgver.tar.gz"
|
|
|
|
_builddir="$srcdir"/lgi-$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 PREFIX=/usr
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make install PREFIX=/usr DESTDIR="$pkgdir"
|
|
mkdir -p "$pkgdir"/usr/share/doc/lua-lgi
|
|
cp -r docs/* samples "$pkgdir"/usr/share/doc/lua-lgi/
|
|
}
|
|
|
|
md5sums="f196ea81f85f49147b0cd7217f5342e9 lgi-0.5.tar.gz"
|