[arch-commits] Commit in xdg-utils-cxx/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Tue May 19 07:57:16 UTC 2020
Date: Tuesday, May 19, 2020 @ 07:57:15
Author: foutrelis
Revision: 386083
archrelease: copy trunk to staging-x86_64
Added:
xdg-utils-cxx/repos/staging-x86_64/
xdg-utils-cxx/repos/staging-x86_64/PKGBUILD
(from rev 386082, xdg-utils-cxx/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: xdg-utils-cxx/repos/staging-x86_64/PKGBUILD (from rev 386082, xdg-utils-cxx/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-05-19 07:57:15 UTC (rev 386083)
@@ -0,0 +1,34 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=xdg-utils-cxx
+pkgver=1.0.1
+pkgrel=2
+_commit=6e6428a3248566ef0fd0c448fda8eb83e8835c31
+pkgdesc="Implementation of the FreeDesktop specifications to be used in C++ projects"
+arch=(x86_64)
+url="https://github.com/azubieta/xdg-utils-cxx"
+license=(MIT)
+depends=()
+makedepends=(cmake)
+source=($pkgname-$pkgver.tar.gz::"https://github.com/azubieta/xdg-utils-cxx/archive/v$pkgver.tar.gz")
+sha256sums=('2cdeda2385faa0ce496a5b276f5145f2dfb3f67ee77789cf8f57752abc83e69b')
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd build
+ cmake ../$pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_CXX_FLAGS="${CXXFLAGS} -fPIC"
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}
More information about the arch-commits
mailing list