summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korotkiy2018-11-28 12:10:43 +0300
committerNikolay Korotkiy2018-11-28 12:10:43 +0300
commitc32ecfd5fcbddc6cdd173fadcd972ea95139c27e (patch)
tree54083723272e6bffa70511c4fdd50e864934fe69
parentbbe58f67faac37cbf5981f077a33e362bec527d4 (diff)
downloadaur-c32ecfd5fcbddc6cdd173fadcd972ea95139c27e.tar.gz
Minor fix
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD17
2 files changed, 9 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2f3faaa3d6d..5e2d35b5305 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
-# Generated by makepkg 5.1.0
-# Fri Jun 8 17:01:52 UTC 2018
+# Generated by makepkg 5.1.1
+# Wed Nov 28 09:07:05 UTC 2018
pkgbase = datamaps-git
pkgdesc = Indexes points and lines and generates map tiles to display them
pkgver = r290.76e620a
diff --git a/PKGBUILD b/PKGBUILD
index 9d993e57c3b..529bfbf0a9c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ 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"
+url='https://github.com/ericfischer/datamaps'
license=('BSD')
depends=('libpng')
makedepends=('git')
@@ -19,8 +19,10 @@ sha256sums=('SKIP')
pkgver() {
cd ${_pkgname}-${_branch}
- REVISION="$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
- printf "r%s" "${REVISION}"
+ count="$(git rev-list --count HEAD)"
+ head="$(git rev-parse --short HEAD)"
+
+ printf "r%s.%s" "${count}" "${head}"
}
build() {
@@ -32,13 +34,8 @@ build() {
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}
+ install -Dm755 ${tool} ${pkgdir}/usr/bin/${_pkgname}-${tool}
done
- install -m 644 LICENSE.md ${pkgdir}/usr/share/licenses/${_pkgname}
+ install -Dm644 LICENSE.md ${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE
}