Browse Source

[trunk] -> [community] 'tinyxml2-9.0.0-1' add

master
Dudemanguy 6 months ago
parent
commit
dd3670218d
Signed by: Dudemanguy GPG Key ID: 4003D2EF625D6492
  1. 18
      tinyxml2/trunk/PKGBUILD
  2. 18
      tinyxml2/x86_64/community/PKGBUILD

18
tinyxml2/trunk/PKGBUILD

@ -3,33 +3,29 @@
# Contributor: dhead666 <myfoolishgames@gmail.com>
pkgname=tinyxml2
pkgver=7.1.0
pkgver=9.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=('68ebd396a4220d5a9b5a621c6e9c66349c5cfdf5efaea3f16e3bb92e45f4e2a3')
source=(https://github.com/leethomason/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('cc2f1417c308b1f6acc54f88eb70771a0bf65f76282ce5c40e54cfe52952702c')
prepare() {
grep License -A20 "$pkgname-$pkgver/readme.md" > LICENSE
}
build() {
mkdir -p build
cd build
cmake "../$pkgname-$pkgver" \
cmake -B build -S $pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-G Ninja
ninja
-Dtinyxml2_SHARED_LIBS=ON
cmake --build build
}
package() {
DESTDIR="$pkgdir" ninja -C build install
DESTDIR="$pkgdir" cmake --install build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

18
tinyxml2/x86_64/community/PKGBUILD

@ -3,33 +3,29 @@
# Contributor: dhead666 <myfoolishgames@gmail.com>
pkgname=tinyxml2
pkgver=7.1.0
pkgver=9.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=('68ebd396a4220d5a9b5a621c6e9c66349c5cfdf5efaea3f16e3bb92e45f4e2a3')
source=(https://github.com/leethomason/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('cc2f1417c308b1f6acc54f88eb70771a0bf65f76282ce5c40e54cfe52952702c')
prepare() {
grep License -A20 "$pkgname-$pkgver/readme.md" > LICENSE
}
build() {
mkdir -p build
cd build
cmake "../$pkgname-$pkgver" \
cmake -B build -S $pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-G Ninja
ninja
-Dtinyxml2_SHARED_LIBS=ON
cmake --build build
}
package() {
DESTDIR="$pkgdir" ninja -C build install
DESTDIR="$pkgdir" cmake --install build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

Loading…
Cancel
Save