db-move: moved linux-zen from [testing] to [extra] (x86_64)
[arch-packages.git] / xdg-utils-cxx / trunk / PKGBUILD
blob6a7b2c1a9dd25f993ceed5023e41ac2a9f4f416b
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=xdg-utils-cxx
4 pkgver=1.0.1
5 pkgrel=2
6 pkgdesc='Implementation of the FreeDesktop specifications to be used in C++ projects'
7 arch=(x86_64)
8 url='https://github.com/azubieta/xdg-utils-cxx'
9 license=(MIT)
10 depends=()
11 makedepends=(cmake)
12 source=(https://github.com/azubieta/xdg-utils-cxx/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
13 sha256sums=('2cdeda2385faa0ce496a5b276f5145f2dfb3f67ee77789cf8f57752abc83e69b')
15 build() {
16   cmake -B build -S $pkgname-$pkgver \
17     -DCMAKE_INSTALL_PREFIX=/usr \
18     -DCMAKE_INSTALL_LIBDIR=lib \
19     -DCMAKE_CXX_FLAGS="${CXXFLAGS} -fPIC -ffat-lto-objects"
20   cmake --build build
23 package() {
24   DESTDIR="$pkgdir" cmake --install build
26   install -Dm644 $pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname