diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-04 02:18:33 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-04 02:20:30 +0100 |
commit | cc916f83b3b8393882c6111d6da34cf55878dcf6 (patch) | |
tree | a28cfcf1383e9cd89365d5d7de99a4cd6f955f9d /main/ldoc | |
parent | 1d69c935d4b03cc43a889c35adcded7d3a34ed05 (diff) | |
download | aports-cc916f83b3b8393882c6111d6da34cf55878dcf6.tar.bz2 aports-cc916f83b3b8393882c6111d6da34cf55878dcf6.tar.xz |
main/ldoc: improve abuild
Diffstat (limited to 'main/ldoc')
-rw-r--r-- | main/ldoc/APKBUILD | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/main/ldoc/APKBUILD b/main/ldoc/APKBUILD index bb67eef8f3..1bb818beda 100644 --- a/main/ldoc/APKBUILD +++ b/main/ldoc/APKBUILD @@ -1,44 +1,34 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> -_luaver=5.2 pkgname=ldoc +_pkgname=LDoc pkgver=1.4.6 pkgrel=0 pkgdesc="Documentation tool for Lua" url="https://github.com/stevedonovan/LDoc" arch="noarch" license="MIT" +_luaver=5.2 depends="lua$_luaver-penlight lua$_luaver" -makedepends="" -install="" -subpackages= -source="LDoc-$pkgver.tar.gz::https://github.com/stevedonovan/LDoc/archive/$pkgver.tar.gz" +source="$_pkgname-$pkgver.tar.gz::https://github.com/stevedonovan/$_pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" -_luashare=/usr/share/lua/$_luaver -_builddir="$srcdir"/LDoc-$pkgver prepare() { - local i - cd "$_builddir" || return 1 - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done - sed -i "1s:.*:#!/usr/bin/lua$_luaver:" ldoc.lua -} + default_prepare + cd "$builddir" -build() { - cd "$_builddir" + sed -i "1s:.*:#!/usr/bin/lua$_luaver:" ldoc.lua find . -type d | xargs chmod 755 } package() { - cd "$_builddir" - install -Dm755 ldoc.lua "$pkgdir"/usr/bin/ldoc || return 1 - install -d "$pkgdir"/$_luashare || return 1 - cp -a ldoc "$pkgdir"/$_luashare/ + local lmod_dir="$pkgdir/usr/share/lua/$_luaver" + cd "$builddir" + + install -Dm755 ldoc.lua "$pkgdir"/usr/bin/ldoc + + install -d "$lmod_dir" + cp -a ldoc "$lmod_dir"/ } -md5sums="e292a11e9bbf1daf429d6f547d2f1afa LDoc-1.4.6.tar.gz" -sha256sums="4b73e78a0325fb3c295d015ddb60b5cee5b647cecb5c50ce8f01319b53bd536f LDoc-1.4.6.tar.gz" sha512sums="bcaddba4e462a4fb0aa0d8fcff390de3f195fa5cc569d8f05b84ad0fff900f5ac945be7a2eb15cf5ca60cc462f02c874579e4a19e33776178a04104ef9d944af LDoc-1.4.6.tar.gz" |