-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKGBUILD
41 lines (33 loc) · 1.08 KB
/
PKGBUILD
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
33
34
35
36
37
38
39
40
41
# Maintainer: Maxime Gauduin <[email protected]>
# Contributor: Jakub Schmidtke <sjakub-at-gmail-dot-com>
# Contributor: Kyle Keen <[email protected]>
# Contributor: Dave Reisner <[email protected]>
# x32 Maintainer: Fantix King <fantix.king at gmail.com>
pkgname=libx32-jansson
pkgver=2.7
pkgrel=1.1
pkgdesc='C library for encoding, decoding and manipulating JSON data (x32 ABI)'
arch=('x86_64')
url='http://www.digip.org/jansson/'
depends=('jansson' 'libx32-glibc')
license=('MIT')
source=("http://www.digip.org/jansson/releases/jansson-${pkgver}.tar.bz2")
sha256sums=('459f2b7cf22fb676286723f26169a17cf111fbfb6f54e3dc2ec6b6f9f4a97bdc')
build() {
cd jansson-${pkgver}
export CC='gcc -mx32'
export CXX='g++ -mx32'
export PKG_CONFIG_PATH='/usr/libx32/pkgconfig'
./configure \
--prefix='/usr' \
--libdir='/usr/libx32'
make
}
package() {
cd jansson-${pkgver}
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{share,include}
install -dm 755 "${pkgdir}"/usr/share/licenses
ln -s jansson "${pkgdir}"/usr/share/licenses/libx32-jansson
}
# vim:set ts=2 sw=2 et: