summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2011-09-30 11:58:44 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2011-09-30 11:58:44 +0000
commit9b3daba3fe823761dde3a312b21319e0f800c3c0 (patch)
tree032da8f13588744b0583cdceb3b0f51f258323ea /testing
parente679c9928c6500c46018e0460b83eb32c8ca486c (diff)
parentffc83e3499bc696c5e70d379700a0ca508a18760 (diff)
downloadaports-9b3daba3fe823761dde3a312b21319e0f800c3c0.tar.bz2
aports-9b3daba3fe823761dde3a312b21319e0f800c3c0.tar.xz
Merge git://git.alpinelinux.org/aports
Diffstat (limited to 'testing')
-rw-r--r--testing/lua-curses/APKBUILD41
-rw-r--r--testing/lua-ldoc/APKBUILD41
2 files changed, 41 insertions, 41 deletions
diff --git a/testing/lua-curses/APKBUILD b/testing/lua-curses/APKBUILD
deleted file mode 100644
index 32173a214..000000000
--- a/testing/lua-curses/APKBUILD
+++ /dev/null
@@ -1,41 +0,0 @@
-# Contributor: Natanael Copa <ncopa@alpinelinux.org>
-# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
-pkgname=lua-curses
-pkgver=7
-pkgrel=0
-pkgdesc="ncurses binding for Lua"
-url="http://luaforge.net/projects/lcurses"
-arch="all"
-license="BSD"
-depends=""
-makedepends="lua-dev ncurses-dev"
-install=""
-subpackages=
-source="http://luaforge.net/frs/download.php/4843/lcurses-$pkgver.tar.gz"
-
-_builddir="$srcdir"/lcurses-$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"
- ./configure --prefix=/usr \
- --disable-static \
- || return 1
- make || return 1
-}
-
-package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
- rm -f "$pkgdir"/usr/lib/lua/*/*.*a
-}
-
-md5sums="5268b69548f113fa8205fd9dd86b89b3 lcurses-7.tar.gz"
diff --git a/testing/lua-ldoc/APKBUILD b/testing/lua-ldoc/APKBUILD
new file mode 100644
index 000000000..3aa4b63d2
--- /dev/null
+++ b/testing/lua-ldoc/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=lua-ldoc
+pkgver=1.0
+pkgrel=0
+pkgdesc="Documentation tool for Lua"
+url="http://github.com/stevedonovan/LDoc"
+arch="noarch"
+license="MIT"
+depends="lua-penlight"
+makedepends="lua-dev"
+install=""
+subpackages=
+source="http://stevedonovan.github.com/files/ldoc-$pkgver.zip"
+
+_luashare=/usr/share/lua/5.1
+_builddir="$srcdir"/LDoc
+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
+ sed -i '1i \
+#!/usr/bin/env lua' ldoc.lua
+}
+
+build() {
+ cd "$_builddir"
+}
+
+package() {
+ cd "$_builddir"
+ install -Dm755 ldoc.lua "$pkgdir"/usr/bin/ldoc || return 1
+ install -d "$pkgdir"/$_luashare || return 1
+ cp -a ldoc "$pkgdir"/$_luashare/
+}
+
+md5sums="fcfb9afadd49c672f0cb553f490b2455 ldoc-1.0.zip"