42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
|
|
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
# Contributor: Christoph Drexler <chrdr at gmx dot at>
|
|
|
|
pkgname=leptonica
|
|
pkgver=1.85.0
|
|
pkgrel=2
|
|
pkgdesc='Software that is broadly useful for image processing and image analysis applications'
|
|
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
|
url='http://www.leptonica.com'
|
|
_url="https://github.com/DanBloomberg/$pkgname"
|
|
license=(custom)
|
|
depends=(giflib libgif.so
|
|
libjpeg-turbo libjpeg.so
|
|
libpng libpng16.so
|
|
libtiff libtiff.so
|
|
libtiff libtiff.so
|
|
libwebp libwebp.so libwebpmux.so libsharpyuv.so
|
|
openjpeg2 # libopenjp2.so
|
|
zlib libz.so)
|
|
_archive="$pkgname-$pkgver"
|
|
source=("$_url/archive/$pkgver/$_archive.tar.gz")
|
|
sha256sums=('c01376bce0379d4ea4bc2ec5d5cbddaa49e2f06f88242619ab8c059e21adf233')
|
|
|
|
prepare() {
|
|
cd "$_archive"
|
|
./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
cd "$_archive"
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$_archive"
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm0644 -t "$pkgdir/usr/share/licenses/leptonica/" leptonica-license.txt
|
|
}
|