From 004e11501ed52ff496278931517fe3f2db08b267 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 25 Mar 2014 08:06:18 +0000 Subject: main/lua-penlight: fix dependencies and license --- main/lua-penlight/APKBUILD | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'main') diff --git a/main/lua-penlight/APKBUILD b/main/lua-penlight/APKBUILD index 3241a5a00..6cf524f67 100644 --- a/main/lua-penlight/APKBUILD +++ b/main/lua-penlight/APKBUILD @@ -1,15 +1,17 @@ # Maintainer: Natanael Copa pkgname=lua-penlight pkgver=1.3.1 -pkgrel=1 +pkgrel=2 pkgdesc="Lua libraries for extended operations on tables, lists and strings" -url="http://penlight.luaforge.net/" +url="http://stevedonovan.github.io/Penlight" arch="noarch" -license="GPL" -depends="lua-filesystem" +license="MIT" +depends="lua5.1-penlight lua5.2-penlight" makedepends="" install= -subpackages="$pkgname-doc lua5.1-penlight:_51 lua5.2-penlight:_52" +subpackages="$pkgname-doc $pkgname-shared + lua5.1-penlight:_51 + lua5.2-penlight:_52" source="penlight-$pkgver.tar.gz::https://github.com/stevedonovan/Penlight/archive/$pkgver.tar.gz" _builddir="$srcdir"/Penlight-$pkgver @@ -22,23 +24,34 @@ build() { package() { cd "$_builddir" - mkdir -p "$pkgdir"/usr/share/lua/5.1/ \ + mkdir -p "$pkgdir"/usr/share/lua/common/ \ + "$pkgdir"/usr/share/lua/5.1/ \ "$pkgdir"/usr/share/lua/5.2/ \ "$pkgdir"/usr/share/doc/$pkgname - cp -r lua/pl "$pkgdir"/usr/share/lua/5.2/ || return 1 + cp -r lua/pl "$pkgdir"/usr/share/lua/common/ || return 1 cp -r examples "$pkgdir"/usr/share/doc/$pkgname/ - ln -s ../5.2/pl "$pkgdir"/usr/share/lua/5.1/pl + ln -s ../common/pl "$pkgdir"/usr/share/lua/5.1/pl + ln -s ../common/pl "$pkgdir"/usr/share/lua/5.2/pl +} + +shared() { + pkgdesc="penlight files that are shared for all supported Lua versions" + depends= + mkdir -p "$subpkgdir"/usr/share/lua/ + mv "$pkgdir"/usr/share/lua/common "$subpkgdir"/usr/share/lua/ } _52() { - depends="$pkgname" + pkgdesc="Lua 5.2 libraries for extended operations on tables, lists and strings" + depends="lua-penlight-common lua5.2-filesystem" mkdir -p "$subpkgdir"/usr/share/lua/ mv "$pkgdir"/usr/share/lua/5.2 "$subpkgdir"/usr/share/lua/ } _51() { + pkgdesc="Lua 5.1 libraries for extended operations on tables, lists and strings" replaces="lua-penlight" - depends="lua5.2-penlight" + depends="lua-penlight-common lua5.1-filesystem" mkdir -p "$subpkgdir"/usr/share/lua/ mv "$pkgdir"/usr/share/lua/5.1 "$subpkgdir"/usr/share/lua/ } -- cgit v1.2.3