upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / gflags / trunk / PKGBUILD
blobd5cb5a72875540c4245d874998dbb34015e0a647
1 # Maintainer : Christian Rebischke <Chris.Rebischke@archlinux.org>
2 # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
3 # Contributor: Anatol Pomozov <anatol.pomozov gmail>
4 # Contributor: RunningDroid <runningdroid AT zoho.com>
5 # Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
7 pkgname=gflags
8 pkgver=2.2.2
9 pkgrel=4
10 pkgdesc='C++ Library for commandline flag processing'
11 arch=('x86_64')
12 url='https://github.com/schuhschuh/gflags'
13 license=('BSD')
14 depends=('gcc-libs')
15 makedepends=('cmake')
16 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/schuhschuh/gflags/archive/v${pkgver}.tar.gz")
17 sha512sums=('98c4703aab24e81fe551f7831ab797fb73d0f7dfc516addb34b9ff6d0914e5fd398207889b1ae555bac039537b1d4677067dae403b64903577078d99c1bdb447')
18 options=('!lto' 'staticlibs')
20 build() {
21   cd "gflags-${pkgver}"
22   cmake . \
23     -DCMAKE_INSTALL_PREFIX=/usr \
24     -DCMAKE_BUILD_TYPE=Release \
25     -DREGISTER_INSTALL_PREFIX=OFF \
26     -DBUILD_SHARED_LIBS=ON \
27     -DBUILD_STATIC_LIBS=ON \
28     -DBUILD_TESTING=ON
29   make
32 check() {
33   cd "gflags-${pkgver}"
34   make test
37 package() {
38   cd "gflags-${pkgver}"
39   make DESTDIR="${pkgdir}" install
40   install -D -m644 COPYING.txt "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING.txt