[arch-commits] Commit in gflags/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 12:23:49 UTC 2020
Date: Tuesday, July 7, 2020 @ 12:23:49
Author: felixonmars
Revision: 658128
archrelease: copy trunk to community-staging-x86_64
Added:
gflags/repos/community-staging-x86_64/
gflags/repos/community-staging-x86_64/PKGBUILD
(from rev 658127, gflags/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: gflags/repos/community-staging-x86_64/PKGBUILD (from rev 658127, gflags/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 12:23:49 UTC (rev 658128)
@@ -0,0 +1,41 @@
+# Maintainer : Christian Rebischke <Chris.Rebischke at archlinux.org>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Anatol Pomozov <anatol.pomozov gmail>
+# Contributor: RunningDroid <runningdroid AT zoho.com>
+# Contributor: Xiao-Long Chen <chenxiaolong at cxl.epac.to>
+
+pkgname=gflags
+pkgver=2.2.2
+pkgrel=2
+pkgdesc='C++ Library for commandline flag processing'
+arch=('x86_64')
+url='https://github.com/schuhschuh/gflags'
+license=('BSD')
+depends=('gcc-libs')
+makedepends=('cmake')
+options=('staticlibs')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/schuhschuh/gflags/archive/v${pkgver}.tar.gz")
+sha512sums=('98c4703aab24e81fe551f7831ab797fb73d0f7dfc516addb34b9ff6d0914e5fd398207889b1ae555bac039537b1d4677067dae403b64903577078d99c1bdb447')
+
+build() {
+ cd "gflags-${pkgver}"
+ cmake . \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DREGISTER_INSTALL_PREFIX=OFF \
+ -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_STATIC_LIBS=ON \
+ -DBUILD_TESTING=ON
+ make
+}
+
+check() {
+ cd "gflags-${pkgver}"
+ make test
+}
+
+package() {
+ cd "gflags-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -D -m644 COPYING.txt "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING.txt
+}
More information about the arch-commits
mailing list