summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12017-10-26 23:38:57 +0800
committerChocobo12017-10-26 23:59:58 +0800
commit2ecc6be383f669a6c430c11b63219bd472f09bb1 (patch)
treeb3163a953cd92606f9393f64e13044170579e431
downloadaur-tinyxml-git.tar.gz
newpkg: tinyxml-git 5.0.1.r78.g8b83b23-1
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD48
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dcfcf79457a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = tinyxml-git
+ pkgdesc = A simple, small, efficient, C++ XML parser
+ pkgver = 5.0.1.r78.g8b83b23
+ pkgrel = 1
+ url = http://grinninglizard.com/tinyxml2/index.html
+ arch = i686
+ arch = x86_64
+ license = zlib
+ makedepends = git
+ makedepends = cmake
+ depends = glibc
+ provides = tinyxml
+ conflicts = tinyxml
+ options = staticlibs
+ source = git+https://github.com/leethomason/tinyxml2.git
+ sha256sums = SKIP
+
+pkgname = tinyxml-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e825b8ed0c4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=tinyxml-git
+pkgver=5.0.1.r78.g8b83b23
+pkgrel=1
+pkgdesc="A simple, small, efficient, C++ XML parser"
+arch=('i686' 'x86_64')
+url="http://grinninglizard.com/tinyxml2/index.html"
+license=('zlib')
+depends=('glibc')
+makedepends=('git' 'cmake')
+provides=('tinyxml')
+conflicts=('tinyxml')
+options=('staticlibs')
+source=("git+https://github.com/leethomason/tinyxml2.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "tinyxml2"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "tinyxml2"
+
+ sed -n '/Original code/,/distribution./p' "tinyxml2.cpp" > "LICENSE"
+
+ mkdir -p "_build"
+ cd "_build"
+ cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_INSTALL_LIBDIR="lib" \
+ -DBUILD_STATIC_LIBS=ON -DCMAKE_BUILD_TYPE=Release ../
+ make
+}
+
+check() {
+ cd "tinyxml2/_build"
+
+ make test
+}
+
+package() {
+ cd "tinyxml2/_build"
+
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "../LICENSE" "$pkgdir/usr/share/licenses/tinyxml/LICENSE"
+}