diff options
author | Eivind Uggedal <eivind@uggedal.com> | 2014-05-31 11:45:20 +0000 |
---|---|---|
committer | Eivind Uggedal <eivind@uggedal.com> | 2014-05-31 11:45:20 +0000 |
commit | 1e9fcc6ba854913c4424d1b8157a74cfb24446f4 (patch) | |
tree | bf4ef5f13bd0985a41e1db8e9d1c96044b3c9916 /unmaintained/lua-ev | |
parent | 9eb998f7d1131a1baabdeb798cffc1bbbc88c654 (diff) | |
download | aports-1e9fcc6ba854913c4424d1b8157a74cfb24446f4.tar.bz2 aports-1e9fcc6ba854913c4424d1b8157a74cfb24446f4.tar.xz |
testing/lua-ev: moved to unmaintained
Diffstat (limited to 'unmaintained/lua-ev')
-rw-r--r-- | unmaintained/lua-ev/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/unmaintained/lua-ev/APKBUILD b/unmaintained/lua-ev/APKBUILD new file mode 100644 index 0000000000..a9a46d060e --- /dev/null +++ b/unmaintained/lua-ev/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=lua-ev +pkgver=1.3 +pkgrel=0 +pkgdesc="Lua bindings to libev" +url="https://github.com/brimworks/lua-ev" +arch="all" +license="MIT" +depends= +makedepends="lua-dev cmake libev-dev wget" +install= +subpackages="$pkgname-doc" +source="https://github.com/downloads/brimworks/lua-ev/lua-ev-v$pkgver.tar.gz" + +_builddir="$srcdir"/lua-ev-v$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" + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DINSTALL_CMOD=/usr/lib/lua/5.1/ \ + . || return 1 + make || return 1 + install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="4b3703d82711407be6ca5ef793b0cf57 lua-ev-v1.3.tar.gz" |