mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-27 13:32:19 +08:00
34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Daniele Cocca <jmc@chakra-project.org>
|
|
|
|
pkgname=lib32-json-c
|
|
_basepkgname=json-c
|
|
pkgver=0.11
|
|
pkgrel=1
|
|
pkgdesc="JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects."
|
|
arch=('x86_64')
|
|
url="https://github.com/json-c/json-c/wiki"
|
|
depends=("$_basepkgname=${pkgver}")
|
|
license=('GPL')
|
|
options=(!libtool !makeflags)
|
|
source=("https://s3.amazonaws.com/${_basepkgname}_releases/releases/${_basepkgname}-${pkgver}.tar.gz")
|
|
md5sums=('aa02367d2f7a830bf1e3376f77881e98')
|
|
|
|
build() {
|
|
export CC="gcc -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
cd "${srcdir}/${_basepkgname}-${pkgver}"
|
|
./configure --prefix=/usr --libdir=/usr/lib32 --disable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_basepkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
rm -rf ${pkgdir}/usr/include
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|