desktop/routino/PKGBUILD

41 lines
929 B
Bash
Raw Permalink Normal View History

2016-03-20 20:38:18 +08:00
pkgname=routino
2017-04-30 21:36:07 +08:00
pkgver=3.2
2015-12-31 22:56:23 +08:00
pkgrel=1
pkgdesc='Router for OpenStreetMap Data'
arch=('x86_64')
url='http://www.routino.org/'
license=('AGPL3')
depends=('zlib' 'bzip2')
makedepends=('make' 'subversion')
2016-03-20 20:38:18 +08:00
conflicts=('routino-experimental')
replaces=('routino-experimental')
source=("http://routino.org/download/routino-$pkgver.tgz")
2017-04-30 21:36:07 +08:00
sha256sums=('e2a431eaffbafab630835966d342e4ae25d5edb94c8ed419200e1ffb50bc7552')
2015-12-31 22:56:23 +08:00
prepare() {
2016-03-20 20:38:18 +08:00
cd "$pkgname-$pkgver"
2015-12-31 22:56:23 +08:00
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
2016-03-20 20:38:18 +08:00
cd "$pkgname-$pkgver"
2015-12-31 22:56:23 +08:00
make
}
package() {
2016-03-20 20:38:18 +08:00
cd "$pkgname-$pkgver"
2015-12-31 22:56:23 +08:00
make DESTDIR="${pkgdir}" install
mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
}