~alpine/aports

testing/djvulibre: new aport v1 SUPERSEDED

Sergey Fukanchik: 1
 testing/djvulibre: new aport

 1 files changed, 60 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/3360/mbox | git am -3
Learn more about email & git

[PATCH] testing/djvulibre: new aport Export this patch

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 <fukanchik@gmail.com>
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