summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68d237074cfab00e9a1ff46f00fb221df463cfc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Rodrigo Bezerra <rodrigobezerra21 at gmail dot com>

_basename=jbigkit
pkgname=lib32-jbigkit
pkgver=2.1
pkgrel=1
pkgdesc="Data compression library/utilities for bi-level high-resolution images (32-bit)"
arch=('x86_64')
url="http://www.cl.cam.ac.uk/~mgk25/jbigkit/"
license=('GPL')
depends=('jbigkit')
options=('staticlibs')
source=(https://www.cl.cam.ac.uk/~mgk25/download/jbigkit-$pkgver.tar.gz)
sha256sums=('de7106b6bfaf495d6865c7dd7ac6ca1381bd12e0d81405ea81e7f2167263d932')

build() {
    cd "$_basename-$pkgver"

    unset CFLAGS CPPFLAGS LDFLAGS CC
    [ "$CARCH" == "x86_64" ] && export CFLAGS="$CFLAGS -fPIC" CC='gcc -m32'

    make CFLAGS="$CFLAGS" CC="$CC"
}

package() {
    cd "$_basename-$pkgver"

    install -D -m644 libjbig/libjbig.a "$pkgdir"/usr/lib32/libjbig.a
    install -D -m644 libjbig/libjbig85.a "$pkgdir"/usr/lib32/libjbig85.a
}