1 # Maintainer: Daurnimator <daurnimator@archlinux.org>
3 pkgname=('lua-binaryheap' 'lua51-binaryheap' 'lua52-binaryheap' 'lua53-binaryheap')
7 url='https://github.com/Tieske/binaryheap.lua'
9 source=("$pkgname-$pkgver.tar.gz::https://github.com/Tieske/binaryheap.lua/archive/version_0v4.tar.gz")
10 sha256sums=('10b1b6c6f2d22560f512f9896a6672ec5ae0eea1390ff8e662be1d5d9625b438')
12 package_lua-binaryheap() {
13 pkgdesc='Binary heap implementation for Lua 5.4'
15 cd "binaryheap.lua-version_0v4"
16 install -Dm644 src/binaryheap.lua "$pkgdir/usr/share/lua/5.4/binaryheap.lua"
19 package_lua51-binaryheap() {
20 pkgdesc='Binary heap implementation for Lua 5.1'
22 cd "binaryheap.lua-version_0v4"
23 install -Dm644 src/binaryheap.lua "$pkgdir/usr/share/lua/5.1/binaryheap.lua"
26 package_lua52-binaryheap() {
27 pkgdesc='Binary heap implementation for Lua 5.2'
29 cd "binaryheap.lua-version_0v4"
30 install -Dm644 src/binaryheap.lua "$pkgdir/usr/share/lua/5.2/binaryheap.lua"
33 package_lua53-binaryheap() {
34 pkgdesc='Binary heap implementation for Lua 5.3'
36 cd "binaryheap.lua-version_0v4"
37 install -Dm644 src/binaryheap.lua "$pkgdir/usr/share/lua/5.3/binaryheap.lua"