summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 25 insertions, 10 deletions
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
}