1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-12-22 06:28:48 -05:00

Add lua-zlib

This commit is contained in:
Travis Burtrum 2019-03-03 23:46:07 -05:00
parent 89f25cb42e
commit 6d925e814b
3 changed files with 56 additions and 2 deletions

54
src/lua-zlib/PKGBUILD Normal file
View File

@ -0,0 +1,54 @@
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=(lua-zlib lua51-zlib lua52-zlib)
pkgbase=lua-zlib
epoch=1
pkgver=1.2
pkgrel=1
url='https://github.com/brimworks/lua-zlib'
pkgdesc='Simple streaming interface to zlib for Lua.'
arch=('x86_64')
license=('MIT')
makedepends=('cmake' 'lua' 'lua51' 'lua52' 'zlib' 'git')
conflicts=('lua-lzlib')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/brimworks/$pkgbase/archive/v$pkgver.tar.gz")
sha256sums=('26b813ad39c94fc930b168c3418e2e746af3b2e80b92f94f306f6f954cc31e7d')
build() {
cp -a "$pkgbase-$pkgver" lua51-zlib-"$pkgver"
cp -a "$pkgbase-$pkgver" lua52-zlib-"$pkgver"
cd "$srcdir"/lua-zlib-"$pkgver"
gcc -o zlib.so -O2 -fPIC -shared lua_zlib.c -llua -lz
cd "$srcdir"/lua51-zlib-"$pkgver"
gcc -o zlib.so -O2 -fPIC -shared -I/usr/include/lua5.1 lua_zlib.c -llua5.1 -lz
cd "$srcdir"/lua52-zlib-"$pkgver"
gcc -o zlib.so -O2 -fPIC -shared -I/usr/include/lua5.2 lua_zlib.c -llua5.2 -lz
}
package_lua-zlib() {
depends=('zlib' 'lua')
cd "$pkgname-$pkgver"
install -Dm0755 zlib.so "$pkgdir/usr/lib/lua/5.3/zlib.so"
install -Dm0644 README "$pkgdir/usr/share/licenses/$pkgname/README"
}
package_lua51-zlib() {
depends=('zlib' 'lua51')
cd "$pkgname-$pkgver"
install -Dm0755 zlib.so "$pkgdir/usr/lib/lua/5.1/zlib.so"
install -Dm0644 README "$pkgdir/usr/share/licenses/$pkgname/README"
}
package_lua52-zlib() {
depends=('zlib' 'lua52')
cd "$pkgname-$pkgver"
install -Dm0755 zlib.so "$pkgdir/usr/lib/lua/5.2/zlib.so"
install -Dm0644 README "$pkgdir/usr/share/licenses/$pkgname/README"
}

View File

@ -2,7 +2,7 @@
pkgname=openconnect-git
_pkgname=openconnect
pkgver=7.08.r127.g8977877
pkgver=8.02.r11.g99ddf978
pkgrel=1
pkgdesc="Open client for Cisco AnyConnect VPN"
arch=('i686' 'x86_64')

View File

@ -8,7 +8,7 @@
pkgname=prosody-hg-stable
pkgrel=1
pkgver=0.10.r7564+.9e565d0b1771+
pkgver=0.10.r7593+.7e053c022782+
pkgver() {
cd "$srcdir/prosody-hg"
printf "0.10.r%s.%s" "$(hg identify -n)" "$(hg identify -i)"