gpxsee/PKGBUILD

41 lines
1.3 KiB
Bash

pkgname=gpxsee
pkgver=7.3
pkgrel=1
pkgdesc='GPS log files visualizing and analyzing tool'
arch=('i686' 'x86_64')
url="http://www.gpxsee.org/"
license=('GPL3')
depends=('qt5-base' 'qt5-imageformats')
makedepends=('qt5-tools')
provides=("${pkgname}=${pkgver}")
source=("GPXSee-${pkgver}.tar.gz")
sha256sums=('SKIP')
build() {
cd GPXSee-${pkgver}
lrelease gpxsee.pro
qmake gpxsee.pro
make
}
package() {
cd GPXSee-${pkgver}
install -d 755 ${pkgdir}/usr/bin
install -d 755 ${pkgdir}/usr/share/applications
install -d 755 ${pkgdir}/usr/share/pixmaps
install -d 755 ${pkgdir}/usr/share/mime/packages
install -d 755 ${pkgdir}/usr/share/${pkgname}
install -d 755 ${pkgdir}/usr/share/${pkgname}/maps
install -d 755 ${pkgdir}/usr/share/${pkgname}/csv
install -d 755 ${pkgdir}/usr/share/${pkgname}/translations
install -m 755 gpxsee ${pkgdir}/usr/bin/${pkgname}
install -m 644 pkg/maps/* ${pkgdir}/usr/share/${pkgname}/maps
install -m 644 pkg/csv/* ${pkgdir}/usr/share/${pkgname}/csv
install -m 644 lang/*.qm ${pkgdir}/usr/share/${pkgname}/translations
install -m 644 icons/gpxsee.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
install -m 644 pkg/gpxsee.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
install -m 644 pkg/gpxsee.xml ${pkgdir}/usr/share/mime/packages/${pkgname}.xml
}