summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBZHDeveloper2018-11-01 19:03:50 +0100
committerBZHDeveloper2018-11-01 19:03:50 +0100
commit0b9e223ef56ba506805a2c00ca3084895b7194cb (patch)
tree9c8c36a801132a354209c63a40f3092a0bcaf3be
downloadaur-0b9e223ef56ba506805a2c00ca3084895b7194cb.tar.gz
Upload PKGBUILD
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD43
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fb3ca94e636
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = libgxml-git
+ pkgdesc = GObject API for XML manipulation and serialization library
+ pkgver = 0.16.0
+ pkgrel = 1
+ url = https://gitlab.gnome.org/BZHDeveloper/gxml/
+ arch = i686
+ arch = x86_64
+ license = LGPL2.1
+ makedepends = vala
+ makedepends = meson
+ makedepends = ninja
+ depends = libgee-git-alt
+ provides = libgxml=0.16.0
+ conflicts = libgxml
+ source = git+https://gitlab.gnome.org/BZHDeveloper/gxml.git
+ sha256sums = SKIP
+
+pkgname = libgxml-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0bc0c09fb77
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Yannick Inizan <inizan[dot]yannick[at]gmail[dot]com>
+
+pkgname=libgxml-git
+pkgver=0.16.0
+pkgrel=1
+pkgdesc="GObject API for XML manipulation and serialization library"
+url="https://gitlab.gnome.org/BZHDeveloper/gxml/"
+license=(LGPL2.1)
+arch=(i686 x86_64)
+depends=('libgee-git-alt')
+makedepends=('vala' 'meson' 'ninja')
+
+provides=('libgxml='$pkgver)
+conflicts=('libgxml')
+
+source=('git+https://gitlab.gnome.org/BZHDeveloper/gxml.git')
+sha256sums=('SKIP')
+
+_gitname='gxml'
+
+pkgver() {
+ cd $_gitname
+ git checkout origin/css-selectors
+ version=$(grep 'project(' meson.build | awk -F\' '{print $8}' -)
+ hash=$(git log --pretty=format:'%h' -n 1)
+ revision=$(git rev-list --count HEAD)
+ echo $version.$revision.$hash
+}
+
+build() {
+ cd $_gitname
+ git checkout origin/css-selectors
+ mkdir build
+ cd build
+ meson .. --prefix=/usr
+ ninja
+}
+
+package() {
+ cd $_gitname
+ cd build
+ DESTDIR="$pkgdir" ninja install
+}