[arch-commits] Commit in lua-psl/repos (community-x86_64 community-x86_64/PKGBUILD)
Daurnimator
daurnimator at archlinux.org
Thu Nov 26 13:56:55 UTC 2020
Date: Thursday, November 26, 2020 @ 13:56:54
Author: daurnimator
Revision: 763533
archrelease: copy trunk to community-x86_64
Added:
lua-psl/repos/community-x86_64/
lua-psl/repos/community-x86_64/PKGBUILD
(from rev 763532, lua-psl/trunk/PKGBUILD)
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
Copied: lua-psl/repos/community-x86_64/PKGBUILD (from rev 763532, lua-psl/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2020-11-26 13:56:54 UTC (rev 763533)
@@ -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