aboutsummaryrefslogtreecommitdiffstats
path: root/community/libcaca/APKBUILD
diff options
context:
space:
mode:
authorMarian Buschsieweke <marian.buschsieweke@ovgu.de>2020-12-26 20:39:25 +0100
committerFrancesco Colista <fcolista@alpinelinux.org>2020-12-29 12:55:01 +0000
commitb683b1172163de14100a6d5d26230583524501c5 (patch)
treee9a86e3bf62cd5040a9fdbc6d1e40f6a04ee6669 /community/libcaca/APKBUILD
parente967314550d5be1082d5d63afd743e4df393bbff (diff)
downloadaports-b683b1172163de14100a6d5d26230583524501c5.tar.gz
aports-b683b1172163de14100a6d5d26230583524501c5.tar.bz2
aports-b683b1172163de14100a6d5d26230583524501c5.tar.xz
community/libcaca: split out apps to subpkg
Diffstat (limited to 'community/libcaca/APKBUILD')
-rw-r--r--community/libcaca/APKBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/community/libcaca/APKBUILD b/community/libcaca/APKBUILD
index 765930ca44..27cbd91816 100644
--- a/community/libcaca/APKBUILD
+++ b/community/libcaca/APKBUILD
@@ -3,15 +3,15 @@
pkgname=libcaca
pkgver=0.99_beta19
_ver=${pkgver/_/.}
-pkgrel=3
+pkgrel=4
pkgdesc="graphics library that outputs text instead of pixels"
url="http://caca.zoy.org/wiki/libcaca"
arch="all"
license="WTFPL"
depends_dev="imlib2-dev"
makedepends="$depends_dev"
-subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
-source="http://caca.zoy.org/files/$pkgname/$pkgname-$_ver.tar.gz
+subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-apps"
+source="http://caca.zoy.org/files/libcaca/libcaca-$_ver.tar.gz
2018-20544.patch::https://github.com/cacalabs/libcaca/commit/84bd155087b93ab2d8d7cb5b1ac94ecd4cf4f93c.patch
2018-20545.patch::https://github.com/cacalabs/libcaca/commit/3e52dabe3e64dc50f4422effe364a1457a8a8592.patch
2018-20546.patch::https://github.com/cacalabs/libcaca/commit/02a09ec9e5ed8981e7a810bfb6a0172dc24f0790.patch
@@ -26,7 +26,7 @@ source="http://caca.zoy.org/files/$pkgname/$pkgname-$_ver.tar.gz
# - CVE-2018-20548
# - CVE-2018-20549
-builddir="$srcdir"/libcaca-${_ver}
+builddir="$srcdir"/libcaca-$_ver
prepare() {
default_prepare
@@ -38,17 +38,20 @@ prepare() {
}
build() {
- cd "$builddir"
./configure --prefix=/usr
make
}
package() {
- cd "$builddir"
make DESTDIR=$pkgdir install
install COPYING -Dm644 $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
+apps() {
+ mkdir -p "$subpkgdir"/usr/
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
sha512sums="780fc7684d40207cc10df3f87d6d8f1d47ddfffa0e76e41a5ce671b82d5c7f090facb054c3d49ca7c4ea1a619625bb9085ce52f837f50792b4a2d776a4c68e15 libcaca-0.99.beta19.tar.gz
09450e15075daf7d944b7af6e7ad4a3124aa600a1cd9a5a49f8aafb8198497ae84b66a8bf84c9633007220fc39fa923aa3d300990fe7b12bcf770f9bb39a52e0 2018-20544.patch
3a85a6145f411502115885a8c8ec0ebb9f7cb098e7aaa128da4f896206d6f4beb0c8c223fb7aec0d53f776d1d51b3532858aa41c16550a0339055663f5718837 2018-20545.patch