summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVersus Void2016-09-23 13:50:26 +0300
committerVersus Void2016-09-23 13:51:11 +0300
commitcfdf6a8f6cdea73cf041e8a3c4913b5d53cb66db (patch)
tree22c2e3589416793f86ac503e03ad89108ef84b46
downloadaur-cfdf6a8f6cdea73cf041e8a3c4913b5d53cb66db.tar.gz
Initial
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD42
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7f04a31f68c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = lib32-jsoncpp
+ pkgdesc = A C++ library for interacting with JSON
+ pkgver = 1.7.5
+ pkgrel = 1
+ url = https://github.com/open-source-parsers/jsoncpp
+ arch = x86_64
+ license = MIT
+ license = custom:Public_Domain
+ makedepends = cmake
+ depends = jsoncpp
+ depends = lib32-gcc-libs
+ source = lib32-jsoncpp-1.7.5.tar.gz::https://github.com/open-source-parsers/jsoncpp/archive/1.7.5.tar.gz
+ sha1sums = c2fe4d67273b8e44f347c68f4491ed867b369b24
+
+pkgname = lib32-jsoncpp
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1e2597a7bc7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 275790 2016-09-06 16:10:26Z anatolik $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Jonahtan Schaeffer <joschaeffer@gmail.com>
+# COntributor: Drake Arconis <lightdrake@gmail.com>
+
+_pkgbasename=jsoncpp
+pkgname=lib32-${_pkgbasename}
+pkgver=1.7.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=('x86_64')
+depends=("${_pkgbasename}" 'lib32-gcc-libs')
+makedepends=('cmake')
+source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/open-source-parsers/${_pkgbasename}/archive/${pkgver}.tar.gz")
+sha1sums=('c2fe4d67273b8e44f347c68f4491ed867b369b24')
+
+build() {
+ cd ${_pkgbasename}-${pkgver}
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_CXX_FLAGS=-m32 \
+ -DLIB_SUFFIX=32 \
+ -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_STATIC_LIBS=OFF
+ make
+}
+
+check() {
+ cd ${_pkgbasename}-${pkgver}
+ make test
+}
+
+package() {
+ cd ${_pkgbasename}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+ rm -rf "${pkgdir}"/usr/include
+}
+