summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mesa2019-10-11 16:50:40 -0500
committerSamuel Mesa2019-10-11 16:50:40 -0500
commit67514e9e46f9085498f10d0d67aaa583fe41c07d (patch)
tree29d6e5912b90fadf04ac357a650be91297a30f4f
parent20097bfa91c0f2dfced1121f9da6471e543dea14 (diff)
downloadaur-67514e9e46f9085498f10d0d67aaa583fe41c07d.tar.gz
Update version to FOSSIL
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD35
2 files changed, 31 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7e0ee05cff3..1b8086587ea 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,20 @@
pkgbase = librasterlite2-devel
pkgdesc = librasterlite2 is an open source library that stores and retrieves huge raster coverages using a SpatiaLite DBMS.
- pkgver = 1.1.0
+ pkgver = r164.5ebd747
pkgrel = 1
url = https://www.gaia-gis.it/fossil/librasterlite2/index
arch = x86_64
arch = i686
license = GPLv3
- depends = libspatialite>=4.1.1-3
+ makedepends = fossil
+ depends = libspatialite-devel
depends = libpng
depends = proj
depends = openjpeg2
depends = charls1
- source = http://www.gaia-gis.it/gaia-sins/librasterlite2-sources/librasterlite2-1.1.0-beta0.tar.gz
- md5sums = 062cbda41f6faaf83de57a1f2b258b95
+ provides = librasterlite2
+ conflicts = librasterlite2
+ replaces = librasterlite2
pkgname = librasterlite2-devel
diff --git a/PKGBUILD b/PKGBUILD
index 643f6eeb233..08382123983 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,26 +2,41 @@
pkgname=librasterlite2-devel
_pkgname=librasterlite2
-pkgver=1.1.0
-_pkgver=1.1.0-beta0
+pkgver=r164.5ebd747
pkgrel=1
pkgdesc="librasterlite2 is an open source library that stores and retrieves huge raster coverages using a SpatiaLite DBMS."
url="https://www.gaia-gis.it/fossil/librasterlite2/index"
arch=('x86_64' 'i686')
license=('GPLv3')
-depends=('libspatialite>=4.1.1-3' 'libpng' 'proj' 'openjpeg2' 'charls1')
-conflicts=()
-replaces=()
-source=("http://www.gaia-gis.it/gaia-sins/${_pkgname}-sources/librasterlite2-${_pkgver}.tar.gz")
-md5sums=('062cbda41f6faaf83de57a1f2b258b95')
+depends=('libspatialite-devel' 'libpng' 'proj' 'openjpeg2' 'charls1')
+makedepends=('fossil')
+provides=("librasterlite2")
+conflicts=("librasterlite2")
+replaces=("librasterlite2")
+
+prepare() {
+ mkdir -p ${_pkgname}
+ cd ${_pkgname}
+
+ fossil clone https://www.gaia-gis.it/fossil/librasterlite2 librasterlite2.fossil
+ fossil open librasterlite2.fossil
+}
+
+pkgver() {
+ cd ${_pkgname}
+
+ _hash=$(fossil info | sed -n 's/checkout: *\([0-9a-z]*\).*/\1/p' | cut -c 1-7)
+ _revision=$(fossil info | sed -n 's/check-ins: *\(.*\)/\1/p')
+ printf "r%s.%s" "$_revision" "$_hash"
+}
build() {
- cd "${srcdir}/${_pkgname}-${_pkgver}"
+ cd ${_pkgname}
./configure --prefix="/usr"
- make
+ make -j2
}
package() {
- cd "${srcdir}/${_pkgname}-${_pkgver}"
+ cd ${_pkgname}
make DESTDIR="${pkgdir}" install
}