summaryrefslogtreecommitdiffstats
path: root/abs/extra/jsoncpp
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-08-07 16:28:46 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-08-07 16:28:46 (GMT)
commit8d1ee123cb808870ef055f036053cc60f1ec39d2 (patch)
tree8c18e5c334aedc03be85029ffb059bf54296016b /abs/extra/jsoncpp
parentf3b226514707616cd69fe8bde423bf0d9c3fa138 (diff)
downloadlinhes_pkgbuild-8d1ee123cb808870ef055f036053cc60f1ec39d2.zip
linhes_pkgbuild-8d1ee123cb808870ef055f036053cc60f1ec39d2.tar.gz
linhes_pkgbuild-8d1ee123cb808870ef055f036053cc60f1ec39d2.tar.bz2
jsoncpp: initial inclusion. dep of cmake
Diffstat (limited to 'abs/extra/jsoncpp')
-rw-r--r--abs/extra/jsoncpp/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/extra/jsoncpp/PKGBUILD b/abs/extra/jsoncpp/PKGBUILD
new file mode 100644
index 0000000..0fd2f2a
--- /dev/null
+++ b/abs/extra/jsoncpp/PKGBUILD
@@ -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
+}
+