archrelease: copy trunk to extra-x86_64
[arch-packages.git] / xdg-utils-cxx / repos / extra-x86_64 / PKGBUILD
blob07b94a838620c888e646a006855d191d3ff097a4
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=xdg-utils-cxx
4 pkgver=1.0.1
5 pkgrel=2
6 _commit=6e6428a3248566ef0fd0c448fda8eb83e8835c31
7 pkgdesc="Implementation of the FreeDesktop specifications to be used in C++ projects"
8 arch=(x86_64)
9 url="https://github.com/azubieta/xdg-utils-cxx"
10 license=(MIT)
11 depends=()
12 makedepends=(cmake)
13 source=($pkgname-$pkgver.tar.gz::"https://github.com/azubieta/xdg-utils-cxx/archive/v$pkgver.tar.gz")
14 sha256sums=('2cdeda2385faa0ce496a5b276f5145f2dfb3f67ee77789cf8f57752abc83e69b')
16 prepare() {
17   mkdir -p build
20 build() {
21   cd build
22   cmake ../$pkgname-$pkgver \
23     -DCMAKE_INSTALL_PREFIX=/usr \
24     -DCMAKE_INSTALL_LIBDIR=lib \
25     -DCMAKE_CXX_FLAGS="${CXXFLAGS} -fPIC"
26   make
29 package() {
30   cd build
31   make DESTDIR="$pkgdir" install
33   install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname