[arch-commits] Commit in (lua-psl lua-psl/repos lua-psl/trunk lua-psl/trunk/PKGBUILD)

Daurnimator daurnimator at archlinux.org
Thu Nov 26 13:54:53 UTC 2020


    Date: Thursday, November 26, 2020 @ 13:54:53
  Author: daurnimator
Revision: 763532

Add lua-psl

Optional dependency for knot-resolver

Added:
  lua-psl/
  lua-psl/repos/
  lua-psl/trunk/
  lua-psl/trunk/PKGBUILD

----------+
 PKGBUILD |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

Added: lua-psl/trunk/PKGBUILD
===================================================================
--- lua-psl/trunk/PKGBUILD	                        (rev 0)
+++ lua-psl/trunk/PKGBUILD	2020-11-26 13:54:53 UTC (rev 763532)
@@ -0,0 +1,60 @@
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+
+pkgname=('lua-psl' 'lua51-psl' 'lua52-psl' 'lua53-psl')
+pkgver=0.3
+pkgrel=2
+arch=('x86_64')
+url='https://github.com/daurnimator/lua-psl'
+license=('MIT')
+makedepends=('lua' 'lua51' 'lua52' 'lua53')
+depends=('libpsl')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/daurnimator/lua-psl/archive/v$pkgver.tar.gz")
+sha256sums=('c7d529d33fcd9d898668014d174ed1dc1257e9076da98729d94a4e8b8d231d40')
+
+build() {
+	cd "lua-psl-$pkgver"
+
+	gcc -fPIC $CPPFLAGS $CFLAGS -o psl/psl.o -c psl/psl.c
+	gcc -shared $LDFLAGS -o psl.so psl/psl.o -lpsl
+
+	gcc -fPIC $CPPFLAGS $CFLAGS -I/usr/include/lua5.1 -o psl/psl.o -c psl/psl.c
+	gcc -shared $LDFLAGS -o psl-5.1.so psl/psl.o -lpsl
+
+	gcc -fPIC $CPPFLAGS $CFLAGS -I/usr/include/lua5.2 -o psl/psl.o -c psl/psl.c
+	gcc -shared $LDFLAGS -o psl-5.2.so psl/psl.o -lpsl
+
+	gcc -fPIC $CPPFLAGS $CFLAGS -I/usr/include/lua5.3 -o psl/psl.o -c psl/psl.c
+	gcc -shared $LDFLAGS -o psl-5.3.so psl/psl.o -lpsl
+}
+
+package_lua-psl() {
+	pkgdesc='libpsl bindings for Lua 5.4'
+
+	cd "lua-psl-$pkgver"
+	install -D psl.so "$pkgdir/usr/lib/lua/5.4/psl.so"
+	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_lua51-psl() {
+	pkgdesc='libpsl bindings for Lua 5.1'
+
+	cd "lua-psl-$pkgver"
+	install -D psl-5.1.so "$pkgdir/usr/lib/lua/5.1/psl.so"
+	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_lua52-psl() {
+	pkgdesc='libpsl bindings for Lua 5.2'
+
+	cd "lua-psl-$pkgver"
+	install -D psl-5.2.so "$pkgdir/usr/lib/lua/5.2/psl.so"
+	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_lua53-psl() {
+	pkgdesc='libpsl bindings for Lua 5.3'
+
+	cd "lua-psl-$pkgver"
+	install -D psl-5.3.so "$pkgdir/usr/lib/lua/5.3/psl.so"
+	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}


More information about the arch-commits mailing list