[arch-commits] Commit in penlight/trunk (PKGBUILD)
Sébastien Luttringer
seblu at nymeria.archlinux.org
Sun Sep 15 18:37:00 UTC 2013
Date: Sunday, September 15, 2013 @ 20:37:00
Author: seblu
Revision: 97241
upgpkg: penlight 1.3.0-1
Modified:
penlight/trunk/PKGBUILD
----------+
PKGBUILD | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-09-15 15:41:43 UTC (rev 97240)
+++ PKGBUILD 2013-09-15 18:37:00 UTC (rev 97241)
@@ -6,26 +6,32 @@
pkgbase=penlight
pkgname=('lua-penlight')
-pkgver=1.2.0
+pkgver=1.3.0
pkgrel=1
pkgdesc='Lua libraries focusing on input data handling'
arch=('any')
url='https://github.com/stevedonovan/penlight'
license=('custom')
-makedepends=('lua')
+depends=('lua' 'lua-filesystem')
source=("$pkgname-$pkgver.tar.gz::https://github.com/stevedonovan/penlight/archive/$pkgver.tar.gz")
-md5sums=('fa213fa3aa3e2c920af8c4b28bdf2a1e')
+md5sums=('7add43a98a940fb066b873c1298c4489')
+check() {
+ cd Penlight-$pkgver
+ export LUA_PATH="$PWD/lua/?/init.lua;$PWD/lua/?.lua;$(lua -e 'print(package.path)')"
+ lua run.lua
+}
+
package_lua-penlight() {
- depends=('lua' 'lua-filesystem')
cd Penlight-$pkgver
- install -dm755 "$pkgdir/usr/share/lua/5.2/pl/platf"
- install -m644 lua/pl/*.lua "$pkgdir/usr/share/lua/5.2/pl"
- install -m644 lua/pl/platf/*.lua "$pkgdir/usr/share/lua/5.2/pl/platf"
+ install -dm755 "$pkgdir/usr/share/lua/5.2/pl"
+ install -m644 lua/pl/* "$pkgdir/usr/share/lua/5.2/pl"
# copy docs
- install -dm755 "$pkgdir/usr/share/doc/$pkgname"
- install -m644 CHANGES.md README.md doc/manual/* "$pkgdir/usr/share/doc/$pkgname"
+ install -dm755 "$pkgdir/usr/share/doc/$pkgname/"{,manual,examples}
+ install -m644 CONTRIBUTING.md CHANGES.md README.md "$pkgdir/usr/share/doc/$pkgname"
+ install -m644 doc/manual/* "$pkgdir/usr/share/doc/$pkgname/manual"
+ install -m644 examples/* "$pkgdir/usr/share/doc/$pkgname/examples"
# copy license
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
More information about the arch-commits
mailing list