summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Severance2015-07-27 17:37:43 -0400
committerChris Severance2015-07-27 17:37:43 -0400
commit09879a25601d4da15decd82b082940ead3375f95 (patch)
treef35c75b50ec502c3f03f84dca7f1a8c3507222d5
parentebea1a1d8a6d1073b9381d1a0b3a3535fb9b0343 (diff)
downloadaur-09879a25601d4da15decd82b082940ead3375f95.tar.gz
git managed by makepkg
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD65
2 files changed, 35 insertions, 34 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a5471725fad..76ed7dc08bb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = libgxps-git
pkgdesc = An XPS Documents library
- pkgver = 20120430
+ pkgver = 0.2.2.r34.gda79d91
pkgrel = 1
url = http://git.gnome.org/browse/libgxps/
arch = i686
@@ -15,6 +15,8 @@ pkgbase = libgxps-git
depends = libtiff
provides = libgxps
conflicts = libgxps
+ source = git://git.gnome.org/libgxps
+ sha256sums = SKIP
pkgname = libgxps-git
diff --git a/PKGBUILD b/PKGBUILD
index 0267cfc53f0..25f192d0267 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,11 @@
-# Maintainer: Auguste Pop <auguste [at] gmail [dot] com>
+# Maintainer: Chris Severance aur.severach AatT spamgourmet.com
+# Contributor: Auguste Pop <auguste [at] gmail [dot] com>
+set -u
+_pkgname='libgxps'
pkgname='libgxps-git'
-pkgver='20120430'
-pkgrel='1'
+pkgver=0.2.2.r34.gda79d91
+pkgrel=1
pkgdesc='An XPS Documents library'
arch=('i686' 'x86_64')
url='http://git.gnome.org/browse/libgxps/'
@@ -12,39 +15,35 @@ makedepends=('git' 'gnome-common' 'gtk-doc' 'gobject-introspection')
provides=('libgxps')
conflicts=('libgxps')
-_gitroot='git://git.gnome.org/libgxps'
-_gitname='libgxps'
+source=('git://git.gnome.org/libgxps')
+sha256sums=('SKIP')
-build()
-{
- cd "${srcdir}"
- msg 'Connecting to GIT server....'
-
- if [[ -d "${_gitname}" ]]
- then
- cd "${_gitname}" && git pull origin
- msg 'The local files are updated.'
- else
- git clone "${_gitroot}" "${_gitname}"
- fi
-
- msg 'GIT checkout done or server timeout'
- msg 'Starting build...'
+pkgver() {
+ set -u
+ cd "${srcdir}/${_pkgname}"
+ git describe --tags --long | sed -E -e 's/([^-]*-g)/r\1/;s/-/./g;s/v//'
+ set +u
+}
- rm -rf "${srcdir}/${_gitname}-build"
- git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
- cd "${srcdir}/${_gitname}-build"
+prepare() {
+ set -u
+ cd "${srcdir}/${_pkgname}"
+ ./autogen.sh
+ ./configure --prefix='/usr' --disable-test
+ set +u
+}
- #
- # BUILD HERE
- #
- ./autogen.sh
- ./configure --prefix='/usr' --disable-test
- make -s -j $(nproc)
+build() {
+ set -u
+ cd "${srcdir}/${_pkgname}"
+ make -s -j $(nproc)
+ set +u
}
-package()
-{
- cd "${srcdir}/${_gitname}-build"
- make DESTDIR="${pkgdir}/" install
+package() {
+ set -u
+ cd "${srcdir}/${_gitname}-build"
+ make DESTDIR="${pkgdir}/" install
+ set +u
}
+set +u