[arch-commits] Commit in jsoncpp/repos (4 files)
Anatol Pomozov
anatolik at archlinux.org
Fri Jul 8 22:14:36 UTC 2016
Date: Friday, July 8, 2016 @ 22:14:36
Author: anatolik
Revision: 271225
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
jsoncpp/repos/testing-i686/
jsoncpp/repos/testing-i686/PKGBUILD
(from rev 271224, jsoncpp/trunk/PKGBUILD)
jsoncpp/repos/testing-x86_64/
jsoncpp/repos/testing-x86_64/PKGBUILD
(from rev 271224, jsoncpp/trunk/PKGBUILD)
-------------------------+
testing-i686/PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
testing-x86_64/PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+)
Copied: jsoncpp/repos/testing-i686/PKGBUILD (from rev 271224, jsoncpp/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2016-07-08 22:14:36 UTC (rev 271225)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Jonahtan Schaeffer <joschaeffer at gmail.com>
+# COntributor: Drake Arconis <lightdrake at gmail.com>
+
+pkgname=jsoncpp
+pkgver=1.7.3
+pkgrel=2
+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"
+ fix_pkgconfig.patch::https://github.com/open-source-parsers/jsoncpp/commit/101fcf0806bbdf8a9202cabd668e650c9ce8cfb1.patch)
+md5sums=('aff6bfb5b81d9a28785429faa45839c5'
+ 'b717297986fba231c97e16a9be40f3c9')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p1 < ../fix_pkgconfig.patch
+}
+
+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
+}
+
Copied: jsoncpp/repos/testing-x86_64/PKGBUILD (from rev 271224, jsoncpp/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2016-07-08 22:14:36 UTC (rev 271225)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Jonahtan Schaeffer <joschaeffer at gmail.com>
+# COntributor: Drake Arconis <lightdrake at gmail.com>
+
+pkgname=jsoncpp
+pkgver=1.7.3
+pkgrel=2
+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"
+ fix_pkgconfig.patch::https://github.com/open-source-parsers/jsoncpp/commit/101fcf0806bbdf8a9202cabd668e650c9ce8cfb1.patch)
+md5sums=('aff6bfb5b81d9a28785429faa45839c5'
+ 'b717297986fba231c97e16a9be40f3c9')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p1 < ../fix_pkgconfig.patch
+}
+
+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
+}
+
More information about the arch-commits
mailing list