[arch-commits] Commit in tinyxml2/trunk (PKGBUILD)

Jaroslav Lichtblau jlichtblau at archlinux.org
Wed Nov 7 19:40:24 UTC 2018


    Date: Wednesday, November 7, 2018 @ 19:40:24
  Author: jlichtblau
Revision: 403146

upgpkg: tinyxml2 7.0.0-1 - new upstream release

Modified:
  tinyxml2/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-07 19:40:12 UTC (rev 403145)
+++ PKGBUILD	2018-11-07 19:40:24 UTC (rev 403146)
@@ -3,25 +3,28 @@
 # Contributor: dhead666 <myfoolishgames at gmail.com>
 
 pkgname=tinyxml2
-pkgver=6.2.0
+pkgver=7.0.0
 pkgrel=1
 pkgdesc='Simple XML parser made for easy integration'
-# no working https page
+arch=('x86_64')
 url='http://www.grinninglizard.com/tinyxml2'
-arch=('x86_64')
 license=('zlib')
-makedepends=('cmake' 'git' 'ninja')
-source=("git+https://github.com/leethomason/tinyxml2#tag=$pkgver")
-md5sums=('SKIP')
+makedepends=('cmake' 'ninja')
+source=($pkgname-$pkgver.tar.gz::https://github.com/leethomason/$pkgname/archive/$pkgver.tar.gz)
+sha256sums=('fa0d1c745d65d4d833e62cb183e23c2034dc7a35ec1a4977e808bdebb9b4fe60')
 
 prepare() {
-  grep License -A20 "$pkgname/readme.md" > LICENSE
+  cd "${srcdir}"/$pkgname-$pkgver
+
+  grep License -A20 readme.md > LICENSE
 }
 
 build() {
-  mkdir -p build
+  cd "${srcdir}"/$pkgname-$pkgver
+
+  install -d build
   cd build
-  cmake "../$pkgname" \
+  cmake .. \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_INSTALL_LIBDIR=lib \
     -DCMAKE_BUILD_TYPE=Release \
@@ -30,9 +33,11 @@
 }
 
 package() {
-  DESTDIR="$pkgdir" ninja -C build install
+  cd "${srcdir}"/$pkgname-$pkgver
+
+  DESTDIR="${pkgdir}" ninja -C build install
   cat LICENSE
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
 }
 
 # getver: github.com/leethomason/tinyxml2



More information about the arch-commits mailing list