diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-06-10 15:34:21 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-06-10 15:34:43 +0300 |
commit | 7e1be4e56ca4c31c8e6040c470d2829c83993803 (patch) | |
tree | 6b716b53bf246f832b1b95e5e06284cb572392d5 /community | |
parent | 701ef7193e5b6a27906646cf2af68dbba3112080 (diff) | |
download | aports-7e1be4e56ca4c31c8e6040c470d2829c83993803.tar.bz2 aports-7e1be4e56ca4c31c8e6040c470d2829c83993803.tar.xz |
community/fbida: moved from testing
Diffstat (limited to 'community')
-rw-r--r-- | community/fbida/APKBUILD | 59 | ||||
-rw-r--r-- | community/fbida/no-pdf.patch | 29 |
2 files changed, 88 insertions, 0 deletions
diff --git a/community/fbida/APKBUILD b/community/fbida/APKBUILD new file mode 100644 index 0000000000..a16103fe6d --- /dev/null +++ b/community/fbida/APKBUILD @@ -0,0 +1,59 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> +pkgname=fbida +pkgver=2.12 +pkgrel=0 +pkgdesc="Few applications to display and elementary edit images" +url="http://www.kraxel.org/blog/linux/$pkgname/" +arch="all" +license="GPL2" +depends="" +depends_dev="" +makedepends=" + freetype-dev fontconfig-dev libdrm-dev libexif-dev motif-dev libepoxy-dev + libpng-dev tiff-dev giflib-dev jpeg-dev + linux-headers perl" +install="" +subpackages="$pkgname-fbgs:_tool $pkgname-exiftran:_tool + $pkgname-fbi:_tool $pkgname-ida:_tool $pkgname-doc" +source="https://www.kraxel.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz + no-pdf.patch" + +builddir="$srcdir"/$pkgname-$pkgver + +build() { + make verbose=yes -C "$builddir" || return 1 +} + +package() { + make DESTDIR="$pkgdir" RESDIR="/etc/X11/app-defaults/$pkgname" \ + prefix=/usr -C "$builddir" install || return 1 +} + +_tool() { + local name=$(echo $subpkgname | cut -d '-' -f2) + pkgdesc="$name tool from $pkgname" + + depends="" + if [ "$name" = "fbgs" ]; then + depends="$pkgname-fbi ghostscript" + fi + + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/$name \ + "$subpkgdir"/usr/bin/$name || return 1 + + if [ "$name" = "ida" ]; then + mv "$pkgdir"/etc/ "$subpkgdir"/etc/ || return 1 + fi + + rmdir "$pkgdir"/usr/bin/ 2>/dev/null || true + rmdir "$pkgdir"/usr/ 2>/dev/null || true +} + +md5sums="f5f3fdaca387f267ddc8a05365113448 fbida-2.12.tar.gz +ac0a18b5b31636a0c15c2e6b076e44fa no-pdf.patch" +sha256sums="d33193105cce77057c919761728cee9bbe8ec8ec4f12a770a600cab33611822f fbida-2.12.tar.gz +3fefc30df317ebf54a6d2c14bee2a1bdc05d002a45d88b7842748d8af071a0eb no-pdf.patch" +sha512sums="383eb766a98137f7252cd981d0e8c9a7382223705a43332f50990ea26763d4882ed1585e72fe9199528502d7f8f9de2e90718dbce71ee08d2181c74aa3e7e515 fbida-2.12.tar.gz +574b3a2d9e184e3cb2f5534b0367fe5926cc1541b4a19d64a1ed8deb2b2a66ca91c33ded61b202b921ed5e7216a0defc8af089090c3a39c99c5b525acb704ab9 no-pdf.patch" diff --git a/community/fbida/no-pdf.patch b/community/fbida/no-pdf.patch new file mode 100644 index 0000000000..32c63797ce --- /dev/null +++ b/community/fbida/no-pdf.patch @@ -0,0 +1,29 @@ +--- a/GNUmakefile 2016-04-05 12:59:50.000000000 +0300 ++++ b/GNUmakefile 2016-06-10 10:31:08.242069624 +0300 +@@ -15,7 +15,7 @@ + PKGS_IDA := libexif + PKGS_FBI := freetype2 fontconfig libdrm libexif + PKGS_FBPDF := libdrm poppler-glib gbm epoxy cairo-gl +-HAVE_DEPS := $(shell $(PKG_CONFIG) $(PKGS_FBI) $(PKGS_FBPDF) && echo yes) ++HAVE_DEPS := $(shell $(PKG_CONFIG) $(PKGS_FBI) && echo yes) + + ifeq ($(HAVE_LINUX_FB_H),yes) + ifneq ($(HAVE_DEPS),yes) +@@ -39,7 +39,7 @@ + # what to build + TARGETS := exiftran thumbnail.cgi + ifeq ($(HAVE_LINUX_FB_H),yes) +- TARGETS += fbi fbpdf kbdtest ++ TARGETS += fbi kbdtest + endif + ifeq ($(HAVE_MOTIF),yes) + TARGETS += ida +@@ -250,7 +250,7 @@ + ifeq ($(HAVE_LINUX_FB_H),yes) + $(INSTALL_BINARY) fbi $(bindir) + $(INSTALL_SCRIPT) fbgs $(bindir) +- $(INSTALL_SCRIPT) fbpdf $(bindir) ++ #$(INSTALL_SCRIPT) fbpdf $(bindir) + $(INSTALL_DATA) $(srcdir)/fbi.man $(mandir)/man1/fbi.1 + $(INSTALL_DATA) $(srcdir)/fbgs.man $(mandir)/man1/fbgs.1 + endif |