~mil/f_scripts

d7dfa08773dbdf54e3e5e47ff615364a2acc2cc0 — Miles Alan 8 months ago e04b769
genscripts/gen_alpinepackage.sh: Update APKBUILD generator based on feedback
1 files changed, 5 insertions(+), 5 deletions(-)

M genscripts/gen_alpinepackage.sh
M genscripts/gen_alpinepackage.sh => genscripts/gen_alpinepackage.sh +5 -5
@@ 6,19 6,20 @@
header() {
  echo '
# Maintainer: Miles Alan <m@milesalan.com>
# Contributor: Miles Alan <m@milesalan.com>
pkgname=f_scripts
pkgver=0.1
pkgver='$(git tag | tail -n1)'
pkgrel=0
pkgdesc="Framebufferphone prompt-driven scripts which are compatible with fbp"
url="http://git.sr.ht/~mil/f_scripts"
arch="noarch"
license="GPL-3.0-or-later"
depends="oil"
source="$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
source="$pkgname-$pkgver.tar.gz::http://git.sr.ht/~mil/f_scripts/archive/$pkgver.tar.gz"
options="!check" # Has no tests
subpackages="' | grep .
  for FILE in ../scripts/f_*; do
    echo "	f_scripts-$(basename $FILE)" 
    echo "	\$pkgname-$(basename $FILE)" 
  done
  echo '"'
}


@@ 40,8 41,7 @@ gen() {
    echo ''${SCRIPTNAME}'() {
	pkgdesc="$pkgname - '$SCRIPTNAME' script, '$DEC'"
	depends="$depends '$DEP'"
	mkdir -p "$subpkgdir/usr/bin/"
	install -Dm755 "$builddir"/scripts/'$SCRIPTNAME' "$subpkgdir/usr/bin/"
	install -Dm755 "$builddir"/scripts/'$SCRIPTNAME' "$subpkgdir/usr/bin/'$SCRIPTNAME'"
}
'
  done