Subject: [PATCH] testing/djvulibre: new aport

From: Sergey Fukanchik <[email-masked]>
Date: Thu, 17 Sep 2020 22:22:51 +0000

http://djvu.sourceforge.net/
Utilities and Libraries for the DjVu image format
---
 testing/djvulibre/APKBUILD | 60 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 testing/djvulibre/APKBUILD

diff --git a/testing/djvulibre/APKBUILD b/testing/djvulibre/APKBUILD
new file mode 100644
index 0000000000..9c73ff2ead
--- /dev/null
+++ b/testing/djvulibre/APKBUILD
@@ -0,0 +1,60 @@
+# Contributor: Sergey Fukanchik <[email-masked]>
+pkgname=djvulibre
+pkgver=3.5.27
+pkgrel=0
+pkgdesc="Utilities and Libraries for the DjVu image format"
+url="http://djvu.sourceforge.net/"
+arch="all"
+license="GPL-2.0"
+depends="libjpeg-turbo tiff"
+makedepends="libjpeg-turbo-dev tiff-dev"
+subpackages="$pkgname-bin:_bin $pkgname-desktop $pkgname-text $pkgname-dev $pkgname-doc lib$pkgname:libs"
+source="http://downloads.sourceforge.net/djvu/djvulibre-$pkgver.tar.gz"
+
+build() {
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--mandir=/usr/share/man
+
+	make
+}
+
+_bin() {
+	pkgdesc="Utilities for the DjVu image format"
+	mkdir -p "$subpkgdir"/usr
+	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
+}
+
+libs() {
+	pkgdesc="Runtime support for the DjVu image format"
+	mkdir -p "$subpkgdir"/usr/lib
+	mv "$pkgdir"/usr/lib/*.so.* \
+		"$subpkgdir"/usr/lib/
+}
+
+text() {
+	pkgdesc="Linguistic support files for libdjvulibre"
+	mkdir -p "$subpkgdir"/usr/share/
+	mv "$pkgdir"/usr/share/djvu \
+		"$subpkgdir"/usr/share/
+}
+
+desktop() {
+	pkgdesc="Desktop support for the DjVu image format"
+	mkdir -p "$subpkgdir"/usr/share
+	mv "$pkgdir"/usr/share/mime \
+		"$pkgdir"/usr/share/icons \
+		"$subpkgdir"/usr/share/
+}
+
+check() {
+	make check
+}
+
+package() {
+	make DESTDIR="$pkgdir" install
+}
+
+sha512sums="62abcaa2fe7edab536477929ba38b882453dab1a06e119a3f838b38d5c61f5d8c252e4769e6534582b826e49bcfb490513179580fab9c3afa84aa92053ccebee  djvulibre-3.5.27.tar.gz"
-- 
2.26.2