aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-08 19:24:47 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-08 23:57:32 +0000
commitbe3bc69df39fd7738dc9c4b3e506b62cb053899a (patch)
treef1dee269b053946ceea81771f1636d7b4cc5e788
parent0c6368bdcff0c951820df798ed9cd0c7df34c12f (diff)
downloadaports-be3bc69df39fd7738dc9c4b3e506b62cb053899a.tar.gz
aports-be3bc69df39fd7738dc9c4b3e506b62cb053899a.tar.bz2
aports-be3bc69df39fd7738dc9c4b3e506b62cb053899a.tar.xz
community/figlet: modernize
-rw-r--r--community/figlet/APKBUILD33
1 files changed, 10 insertions, 23 deletions
diff --git a/community/figlet/APKBUILD b/community/figlet/APKBUILD
index 7af87acf27..91157f0645 100644
--- a/community/figlet/APKBUILD
+++ b/community/figlet/APKBUILD
@@ -2,40 +2,27 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=figlet
pkgver=2.2.5
-pkgrel=0
-pkgdesc="A program for making large letters out of ordinary text"
+pkgrel=1
+pkgdesc="Program for making large letters out of ordinary text"
url="http://www.figlet.org/"
arch="all"
-license="BSD"
-depends=""
-depends_dev=""
-makedepends="$depends_dev"
-install=""
+license="BSD-3-Clause"
subpackages="$pkgname-doc"
-source="ftp://ftp.figlet.org/pub/figlet/program/unix/${pkgname}-${pkgver}.tar.gz
+source="ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-$pkgver.tar.gz
musl-fix-cplusplus-decls.patch
"
-_builddir="$srcdir"/$pkgname-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
build() {
- cd "$_builddir"
make DEFAULTFONTDIR=/usr/share/figlet/fonts all
}
+check() {
+ make check
+}
+
package() {
- cd "$_builddir"
- make DESTDIR="${pkgdir}" BINDIR=/usr/bin MANDIR=/usr/share/man \
- DEFAULTFONTDIR=/usr/share/figlet/fonts install
- install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ make DESTDIR="$pkgdir" BINDIR=/usr/bin MANDIR=/usr/share/man \
+ DEFAULTFONTDIR=/usr/share/figlet/fonts install
}
sha512sums="bb9610fd89a51dd3e65c485653fe1292f47dbca7cb9a05af4ce317f5d776bb346ae455aec07fc37c290f6658639920fd7c431c1135a0f4d456a21c0bd25f99fb figlet-2.2.5.tar.gz