[arch-commits] Commit in (4 files)
Caleb Maclennan
alerque at gemini.archlinux.org
Sat Sep 4 15:04:32 UTC 2021
Date: Saturday, September 4, 2021 @ 15:04:32
Author: alerque
Revision: 1011293
Migrate lua-linenoise from AUR
Added:
lua-linenoise/
lua-linenoise/repos/
lua-linenoise/trunk/
lua-linenoise/trunk/PKGBUILD
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Added: lua-linenoise/trunk/PKGBUILD
===================================================================
--- lua-linenoise/trunk/PKGBUILD (rev 0)
+++ lua-linenoise/trunk/PKGBUILD 2021-09-04 15:04:32 UTC (rev 1011293)
@@ -0,0 +1,45 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: wenLiangcan <boxeed at gmail dot com>
+
+pkgbase=lua-linenoise
+_rockname=${pkgbase#lua-}
+pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
+pkgver=0.9
+pkgrel=6
+_rockrel=1
+pkgdesc='A binding for the linenoise command line library'
+arch=(x86_64)
+url="https://github.com/hoelzro/$pkgbase"
+license=(MIT)
+makedepends=(lua
+ lua51
+ lua52
+ lua53
+ luarocks)
+_archive="$pkgbase-$pkgver"
+source=("$_archive.tar.gz::$url/archive/$pkgver.tar.gz")
+sha256sums=('cc1cdb4047edd056a10dcdeec853dbaf5088e2202941d579e4592584d733f09c')
+
+_package() {
+ cd "$_archive"
+ depends=("${pkgname%-*}")
+ luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
+ make --deps-mode=none --no-manifest "$_rockname-$pkgver-$_rockrel.rockspec"
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING
+}
+
+package_lua-linenoise() {
+ _package 5.4
+}
+
+package_lua51-linenoise() {
+ _package 5.1
+}
+
+package_lua52-linenoise() {
+ _package 5.2
+}
+
+package_lua53-linenoise() {
+ _package 5.3
+}
More information about the arch-commits
mailing list