diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 08:45:57 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 08:45:57 +0000 |
commit | 5aebbf6d480757fdfbff400ede7d6275ff6f94dd (patch) | |
tree | f1af73cfade69ad9f1d2a69a61a9d0eba601f776 /community/leptonica/APKBUILD | |
parent | 85088abd96ce396e6daac5d268dfcc19ccfd2467 (diff) | |
download | aports-5aebbf6d480757fdfbff400ede7d6275ff6f94dd.tar.bz2 aports-5aebbf6d480757fdfbff400ede7d6275ff6f94dd.tar.xz |
community/leptonica: moved from testing
Diffstat (limited to 'community/leptonica/APKBUILD')
-rw-r--r-- | community/leptonica/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/community/leptonica/APKBUILD b/community/leptonica/APKBUILD new file mode 100644 index 0000000000..c7d1eaec38 --- /dev/null +++ b/community/leptonica/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=leptonica +pkgver=1.73 +pkgrel=0 +pkgdesc="Software that is broadly useful for image processing and image analysis applications" +url="http://www.leptonica.com/" +arch="all" +license="custom" +depends="" +depends_dev="libjpeg-turbo-dev tiff-dev libpng-dev zlib-dev giflib-dev libwebp-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev" +source="http://www.leptonica.com/source/leptonica-$pkgver.tar.gz" + +_builddir="$srcdir"/leptonica-$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 + update_config_sub || return 1 +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="092cea2e568cada79fff178820397922 leptonica-1.73.tar.gz" +sha256sums="19e4335c674e7b78af9338d5382cc5266f34a62d4ce533d860af48eaa859afc1 leptonica-1.73.tar.gz" +sha512sums="4808474d5941a91fbf542a22fed26ddc33f9c4baf2699096acf5e894b7e4e84889d165373b7d1df391a68cda8176113cf122f15203a9e38d3059e17140efc575 leptonica-1.73.tar.gz" |