[arch-commits] Commit in tinyxml2/repos (2 files)

Jaroslav Lichtblau jlichtblau at archlinux.org
Sun Mar 8 17:16:58 UTC 2020


    Date: Sunday, March 8, 2020 @ 17:16:57
  Author: jlichtblau
Revision: 592280

archrelease: copy trunk to community-staging-x86_64

Added:
  tinyxml2/repos/community-staging-x86_64/
  tinyxml2/repos/community-staging-x86_64/PKGBUILD
    (from rev 592279, tinyxml2/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: tinyxml2/repos/community-staging-x86_64/PKGBUILD (from rev 592279, tinyxml2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-03-08 17:16:57 UTC (rev 592280)
@@ -0,0 +1,37 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: dhead666 <myfoolishgames at gmail.com>
+
+pkgname=tinyxml2
+pkgver=8.0.0
+pkgrel=1
+pkgdesc='Simple XML parser made for easy integration'
+arch=('x86_64')
+url='http://www.grinninglizard.com/tinyxml2'
+license=('zlib')
+makedepends=('cmake' 'ninja' 'setconf')
+source=($pkgname-$pkgver.tar.gz::https://github.com/leethomason/$pkgname/archive/$pkgver.tar.gz)
+sha256sums=('6ce574fbb46751842d23089485ae73d3db12c1b6639cda7721bf3a7ee862012c')
+
+prepare() {
+  grep License -A20 "$pkgname-$pkgver/readme.md" > LICENSE
+}
+
+build() {
+  mkdir -p build
+  cd build
+  cmake "../$pkgname-$pkgver" \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DCMAKE_BUILD_TYPE=Release \
+    -G Ninja
+  ninja
+}
+
+package() {
+  DESTDIR="$pkgdir" ninja -C build install
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# getver: github.com/leethomason/tinyxml2
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list