mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 09:57:14 +08:00
jsoncpp: added to comply with cmake
This commit is contained in:
parent
d6755992dc
commit
35d9a39107
38
jsoncpp/PKGBUILD
Normal file
38
jsoncpp/PKGBUILD
Normal file
@ -0,0 +1,38 @@
|
||||
# $Id$
|
||||
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
|
||||
# Contributor: Jonahtan Schaeffer <joschaeffer@gmail.com>
|
||||
# COntributor: Drake Arconis <lightdrake@gmail.com>
|
||||
|
||||
pkgname=jsoncpp
|
||||
pkgver=1.6.5
|
||||
pkgrel=1
|
||||
pkgdesc='A C++ library for interacting with JSON'
|
||||
url='https://github.com/open-source-parsers/jsoncpp'
|
||||
license=('MIT' 'custom:Public_Domain')
|
||||
arch=('i686' 'x86_64')
|
||||
depends=('gcc-libs')
|
||||
makedepends=('cmake')
|
||||
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/open-source-parsers/${pkgname}/archive/${pkgver}.tar.gz")
|
||||
md5sums=('2bb16bb8d2b867acbdd71d1855062a89')
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DBUILD_STATIC_LIBS=OFF
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user