summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordaurnimator2019-02-14 01:07:47 +1100
committerdaurnimator2019-02-14 01:07:47 +1100
commitabaaf8e21b37607dbae07ef9a2cd41cef49ea7e0 (patch)
tree79cc2b9a7d97ee25afb27b8609ac14d91c1ad08c
downloadaur-lua-binaryheap.tar.gz
Initial package
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD31
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..733af762c2a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = lua-binaryheap
+ pkgver = 0.4
+ pkgrel = 1
+ url = https://github.com/Tieske/binaryheap.lua
+ arch = any
+ license = MIT
+ source = lua-binaryheap-0.4.tar.gz::https://github.com/Tieske/binaryheap.lua/archive/version_0v4.tar.gz
+ md5sums = 8dc4ea3df17fc7c586693d6fb6f0a8a3
+
+pkgname = lua-binaryheap
+ pkgdesc = Binary heap implementation for Lua 5.3
+
+pkgname = lua51-binaryheap
+ pkgdesc = Binary heap implementation for Lua 5.1
+
+pkgname = lua52-binaryheap
+ pkgdesc = Binary heap implementation for Lua 5.2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3306767bb09
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Daurnimator <quae@daurnimator.com>
+
+pkgname=('lua-binaryheap' 'lua51-binaryheap' 'lua52-binaryheap')
+pkgver=0.4
+pkgrel=1
+arch=('any')
+url='https://github.com/Tieske/binaryheap.lua'
+license=('MIT')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Tieske/binaryheap.lua/archive/version_0v4.tar.gz")
+md5sums=('8dc4ea3df17fc7c586693d6fb6f0a8a3')
+
+package_lua-binaryheap() {
+ pkgdesc='Binary heap implementation for Lua 5.3'
+
+ cd "binaryheap.lua-version_0v4"
+ install -Dm644 src/binaryheap.lua "$pkgdir/usr/share/lua/5.3/binaryheap.lua"
+}
+
+package_lua51-binaryheap() {
+ pkgdesc='Binary heap implementation for Lua 5.1'
+
+ cd "binaryheap.lua-version_0v4"
+ install -Dm644 src/binaryheap.lua "$pkgdir/usr/share/lua/5.1/binaryheap.lua"
+}
+
+package_lua52-binaryheap() {
+ pkgdesc='Binary heap implementation for Lua 5.2'
+
+ cd "binaryheap.lua-version_0v4"
+ install -Dm644 src/binaryheap.lua "$pkgdir/usr/share/lua/5.2/binaryheap.lua"
+}