summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9d993e57c3b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Nikolay Korotkiy <sikmir@gmail.com>
+_orgname=ericfischer
+_pkgname=datamaps
+_branch=master
+pkgname=${_pkgname}-git
+pkgver=r290.76e620a
+pkgrel=1
+pkgdesc='Indexes points and lines and generates map tiles to display them'
+arch=('i686' 'x86_64')
+url="https://github.com/ericfischer/datamaps"
+license=('BSD')
+depends=('libpng')
+makedepends=('git')
+provides=("${pkgname//-git}=${pkgver}")
+conflicts=(${pkgname//-git})
+source=("${_pkgname}-${_branch}::git://github.com/${_orgname}/${_pkgname}.git#branch=${_branch}")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd ${_pkgname}-${_branch}
+
+ REVISION="$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+ printf "r%s" "${REVISION}"
+}
+
+build() {
+ cd ${_pkgname}-${_branch}
+
+ make
+}
+
+package() {
+ cd ${_pkgname}-${_branch}
+
+ install -d 755 ${pkgdir}/usr/bin
+ install -d 755 ${pkgdir}/usr/share
+ install -d 755 ${pkgdir}/usr/share/licenses
+ install -d 755 ${pkgdir}/usr/share/licenses/${_pkgname}
+
+ for tool in encode enumerate merge render; do
+ install -m 755 $tool ${pkgdir}/usr/bin/${_pkgname}-${tool}
+ done
+ install -m 644 LICENSE.md ${pkgdir}/usr/share/licenses/${_pkgname}
+}