summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorNikolay Korotkiy2018-11-28 12:10:43 +0300
committerNikolay Korotkiy2018-11-28 12:10:43 +0300
commitc32ecfd5fcbddc6cdd173fadcd972ea95139c27e (patch)
tree54083723272e6bffa70511c4fdd50e864934fe69 /PKGBUILD
parentbbe58f67faac37cbf5981f077a33e362bec527d4 (diff)
downloadaur-c32ecfd5fcbddc6cdd173fadcd972ea95139c27e.tar.gz
Minor fix
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 7 insertions, 10 deletions
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
}