[arch-commits] Commit in ldoc/trunk (PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Thu Feb 17 11:07:17 UTC 2022
Date: Thursday, February 17, 2022 @ 11:07:16
Author: alerque
Revision: 1133693
upgpkg: ldoc 1.4.6-5; drop .lua duplicate binary
Upstream installer does not include ldoc.lua, just a plain ldoc binary shim.
Modified:
ldoc/trunk/PKGBUILD
----------+
PKGBUILD | 44 ++++++++++++++++++++------------------------
1 file changed, 20 insertions(+), 24 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-17 10:55:06 UTC (rev 1133692)
+++ PKGBUILD 2022-02-17 11:07:16 UTC (rev 1133693)
@@ -1,33 +1,29 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
# Contributor: Jaroslav Lichtblau <svetlemodry at archlinux.org>
# Contributor: Sébastien Luttringer
-pkgname=ldoc
+_pkgname=LDoc
+pkgname=${_pkgname,,}
pkgver=1.4.6
-pkgrel=3
+pkgrel=5
pkgdesc='LuaDoc-compatible documentation generation system'
-url='https://stevedonovan.github.com/ldoc/'
-arch=('any')
-license=('custom')
-depends=('lua' 'lua-penlight')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/stevedonovan/ldoc/archive/${pkgver}.tar.gz)
-sha512sums=('bcaddba4e462a4fb0aa0d8fcff390de3f195fa5cc569d8f05b84ad0fff900f5ac945be7a2eb15cf5ca60cc462f02c874579e4a19e33776178a04104ef9d944af')
+url="https://github.com/lunarmodules/$_pkgname"
+arch=(any)
+license=(MIT)
+depends=(lua
+ # lua-markdown # claimed in rockspec but vendored?
+ lua-penlight)
+_archive="$_pkgname-$pkgver"
+source=("$url/archive/$pkgver/$_archive.tar.gz")
+sha256sums=('4b73e78a0325fb3c295d015ddb60b5cee5b647cecb5c50ce8f01319b53bd536f')
package() {
- cd LDoc-${pkgver}
-
- # install library
- install -dm 755 "${pkgdir}/usr/share/lua/5.4"
- cp -a ldoc "${pkgdir}/usr/share/lua/5.4"
-
- # install binaries
- install -Dm 755 ldoc.lua "${pkgdir}/usr/bin/ldoc.lua"
- ln -s ldoc.lua "${pkgdir}/usr/bin/ldoc"
-
- # copy docs
- install -Dm 644 readme.md doc/doc.md -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -Dm 644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cd "$_archive"
+ install -dm755 "$pkgdir/usr/share/lua/5.4"
+ cp -a ldoc "$pkgdir/usr/share/lua/5.4"
+ install -Dm0755 "$pkgname.lua" "$pkgdir/usr/bin/$pkgname"
+ install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" readme.md doc/doc.md
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYRIGHT
}
-
-# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list