archrelease: copy trunk to community-any
[ArchLinux/community.git] / viking / trunk / PKGBUILD
blob49b6ff4f321ce998aba2cf6ded6644f5dfcf4c43
1 # Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
2 # Contributor: Nick Ã˜stergaard <oe.nick@gmail.com>
3 # Contributor: Jonny Gerold <jonny@fsk141.com>
5 pkgname=viking
6 pkgver=1.10
7 pkgrel=2
8 pkgdesc="GTK application to manage GPS data"
9 arch=('x86_64')
10 url="https://sourceforge.net/projects/viking/"
11 license=('GPL2')
12 depends=('curl' 'file' 'gpsd' 'gtk3' 'libgexiv2' 'mapnik' 'geoclue' 'liboauth' 'libzip')
13 makedepends=('boost' 'docbook-xsl' 'intltool' 'itstool')
14 optdepends=('gpsbabel: import and export GPS tracks from various formats')
15 changelog=$pkgname.changelog
16 source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
17         https://raw.githubusercontent.com/viking-gps/$pkgname/$pkgname-$pkgver/org.viking.Viking.appdata.xml)
18 sha256sums=('9455c895f98bc13de24bd6b234cd0f1d5ecdc1b068b4cbc6eb6644f6126e45ac'
19             'f6dad8e63e49150e60e92243c08202dec20af2d453d38c18dd18ff95712b1885')
21 prepare() {
22   sed -i 's/org.viking.Viking.desktop/viking.desktop/' org.viking.Viking.appdata.xml
25 build() {
26   cd "${srcdir}"/$pkgname-$pkgver
28   export CXXFLAGS="$CXXFLAGS -I/usr/include/mapnik"
29   ./configure --prefix=/usr
30   make
33 package(){
34   cd "${srcdir}"/$pkgname-$pkgver
36   make DESTDIR="${pkgdir}" install
37   install -Dm644 ../org.viking.Viking.appdata.xml "${pkgdir}"/usr/share/metainfo/viking.appdata.xml