summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6cd236b486551d71e94928055cef8f5494be297 (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
31
32
# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>

_pkgbasename=libjson
pkgname=lib32-$_pkgbasename
pkgver='0.8'
pkgrel='1'
pkgdesc="Small C library and small codebase that packs an efficient parser and a configurable printer (32-bit version)"
arch=('x86_64')
url="http://projects.snarc.org/libjson/"
license=('LGPL')
depends=(lib32-glibc $_pkgbasename)
makedepends=(gcc-multilib)
options=(!libtool !makeflags)
source=('http://projects.snarc.org/libjson/download/libjson-0.8.tar.gz')
md5sums=('f8eddc87510d399a2532a9b0d74c2455')

build() {
  cd "${srcdir}/${_pkgbasename}-${pkgver}"

  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  sed -i s:/lib:/lib32:g Makefile
  make CC="gcc -m32" CFLAGS:='-Wall -Os -fPIC'
}

package() {
  cd "${srcdir}/${_pkgbasename}-${pkgver}"

  make CC="gcc -m32" CFLAGS:='-Wall -Os -fPIC' DESTDIR="${pkgdir}" install
  rm -r "${pkgdir}/usr/bin"
  rm -r "${pkgdir}/usr/include"
}