summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD65
2 files changed, 35 insertions, 34 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a5471725fad1..76ed7dc08bba 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 0267cfc53f08..25f192d0267a 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