diff options
author | Rodrigo Bezerra | 2018-08-18 22:43:09 -0300 |
---|---|---|
committer | Rodrigo Bezerra | 2018-08-18 22:43:09 -0300 |
commit | 24ebd5eb6bf7914fd3d1e852245b235604568f95 (patch) | |
tree | 8603c6d536e2a5e514b783cada5d2be46b7d536f | |
download | aur-24ebd5eb6bf7914fd3d1e852245b235604568f95.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..10dea8e96a19 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = lib32-leptonica + pkgdesc = Software that is broadly useful for image processing and image analysis applications (32 bit) + pkgver = 1.76.0 + pkgrel = 1 + url = http://www.leptonica.com/ + arch = x86_64 + license = custom + depends = lib32-giflib + depends = lib32-libwebp + depends = lib32-openjpeg2 + depends = leptonica + source = leptonica-1.76.0.tar.gz::https://github.com/DanBloomberg/leptonica/archive/1.76.0.tar.gz + sha256sums = ff98ffef6103cda0e400676f81113a8157569ac0f453c6e03a1a27b305ba25a7 + +pkgname = lib32-leptonica + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..32a68c6f3411 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Rodrigo Bezerra <rodrigobezerra21 at gmail dot com> + +_basename=leptonica +pkgname=lib32-leptonica +pkgver=1.76.0 +pkgrel=1 +pkgdesc="Software that is broadly useful for image processing and image analysis applications (32 bit)" +arch=('x86_64') +url="http://www.leptonica.com/" +license=('custom') +depends=('lib32-giflib' 'lib32-libwebp' 'lib32-openjpeg2' 'leptonica') +source=("$_basename-$pkgver.tar.gz::https://github.com/DanBloomberg/leptonica/archive/$pkgver.tar.gz") +sha256sums=('ff98ffef6103cda0e400676f81113a8157569ac0f453c6e03a1a27b305ba25a7') + +build() { + cd $_basename-$pkgver + + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + ./autobuild + + ./configure \ + --build=i686-pc-linux-gnu \ + --prefix=/usr \ + --libdir=/usr/lib32 + + make +} + +package() { + cd $_basename-$pkgver + + make DESTDIR="$pkgdir" install + + install -Dm644 leptonica-license.txt "$pkgdir/usr/share/licenses/$pkgname/leptonica-license.txt" + + cd "$pkgdir/usr" + + rm -r bin include +} |