desktop/routino/PKGBUILD
2016-03-20 13:38:18 +01:00

41 lines
931 B
Bash

pkgname=routino
pkgver=3.1.1
pkgrel=1
pkgdesc='Router for OpenStreetMap Data'
arch=('x86_64')
url='http://www.routino.org/'
license=('AGPL3')
depends=('zlib' 'bzip2')
makedepends=('make' 'subversion')
conflicts=('routino-experimental')
replaces=('routino-experimental')
source=("http://routino.org/download/routino-$pkgver.tgz")
sha256sums=('23b9fce43f0a85c9efe220c6c72026dd7b37f6a4a5153bb9dc4c4b0747c7f282')
prepare() {
cd "$pkgname-$pkgver"
sed -i 's|prefix=/usr/local|prefix=/usr|' Makefile.conf
}
build() {
MAKEFLAGS=-j1
if echo $MAKEFLAGS | grep -q -- '-j[2-9]'
then
error "Routino parallele compilation failed. Please unset -j make flag and relaunch the build."
plain "$(gettext "Aborting...")"
exit 1
fi
cd "$pkgname-$pkgver"
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="${pkgdir}" install
mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
}