summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD48
2 files changed, 36 insertions, 31 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8aefdb7845c..4050e365440 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,22 @@
pkgbase = lua-unix
- pkgver = 20170920
+ pkgdesc = Lua bindings for common *nix system APIs
+ pkgver = 20190403
pkgrel = 1
- url = http://25thandclement.com/~william/projects/lunix.html
+ url = https://github.com/wahern/lunix
arch = x86_64
license = MIT
makedepends = lua
makedepends = lua51
makedepends = lua52
- source = http://25thandclement.com/~william/projects/releases/lunix-20170920.tgz
- md5sums = e2ef87e5bfc3432127037c9228305002
+ source = lunix-20190403.tar.gz::https://github.com/wahern/lunix/archive/rel-20190403.tar.gz
+ sha256sums = e27ee456f30aa1b6d93ebe079a274764eda81308655612dd68edfb7deede7563
pkgname = lua-unix
- pkgdesc = lua bindings library for common *nix system APIs
-
-pkgname = lua51-unix
- pkgdesc = lua51 bindings library for common *nix system APIs
+ depends = lua
pkgname = lua52-unix
- pkgdesc = lua52 bindings library for common *nix system APIs
+ depends = lua52
+
+pkgname = lua51-unix
+ depends = lua51
diff --git a/PKGBUILD b/PKGBUILD
index 9612bba4c1a..bd21b75d6a0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,38 +1,42 @@
-# Maintainer: meskarune <admin@doloresportalatin.info>
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
+# Contributor: meskarune <admin@doloresportalatin.info>
-pkgname=(lua-unix lua51-unix lua52-unix)
-_basename=lunix
-pkgver=20170920
+_rockname=unix
+_project=l$_rockname
+pkgname=("lua-$_rockname" "lua52-$_rockname" "lua51-$_rockname")
+pkgver=20190403
pkgrel=1
+pkgdesc='Lua bindings for common *nix system APIs'
arch=('x86_64')
-url='http://25thandclement.com/~william/projects/lunix.html'
+url="https://github.com/wahern/$_project"
license=('MIT')
makedepends=('lua' 'lua51' 'lua52')
-source=("http://25thandclement.com/~william/projects/releases/$_basename-$pkgver.tgz")
-md5sums=('e2ef87e5bfc3432127037c9228305002')
+source=("$_project-$pkgver.tar.gz::https://github.com/wahern/$_project/archive/rel-$pkgver.tar.gz")
+sha256sums=('e27ee456f30aa1b6d93ebe079a274764eda81308655612dd68edfb7deede7563')
+_tardir="$_project-rel-$pkgver"
build() {
- cd "$_basename-$pkgver"
+ cd "$_tardir"
make prefix=/usr all
}
-package_lua-unix() {
- pkgdesc='lua bindings library for common *nix system APIs'
- cd "$_basename-$pkgver"
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
- make prefix=/usr DESTDIR="$pkgdir" install5.3
+_package_helper() {
+ cd "$_tardir"
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+ make prefix=/usr DESTDIR="$pkgdir" install$1
}
-package_lua51-unix() {
- pkgdesc='lua51 bindings library for common *nix system APIs'
- cd "$_basename-$pkgver"
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
- make prefix=/usr DESTDIR="$pkgdir" install5.1
+package_lua-unix() {
+ depends+=('lua')
+ _package_helper 5.3
}
package_lua52-unix() {
- pkgdesc='lua52 bindings library for common *nix system APIs'
- cd "$_basename-$pkgver"
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
- make prefix=/usr DESTDIR="$pkgdir" install5.2
+ depends+=('lua52')
+ _package_helper 5.2
+}
+
+package_lua51-unix() {
+ depends+=('lua51')
+ _package_helper 5.1
}