desktop/qlandkartegt/PKGBUILD
2011-06-15 22:38:01 +00:00

44 lines
1.1 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=qlandkartegt
pkgver=1.2.0
pkgrel=1
pkgdesc="Use your GPS with Linux"
arch=('i686' 'x86_64')
url="http://www.qlandkarte.org"
license=('GPL')
depends=('gdal' 'gpsd' 'libdmtx' 'libexif' 'libmysqlclient' 'mesa' 'postgresql-libs' 'qt' 'shared-mime-info')
optdepends=('garmindev: to connect garmin devices')
makedepends=('cmake>=2.6' 'garmindev')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz \
$pkgname-mimetypes.xml)
md5sums=('fd437944f597323453bd920ff0075a2a'
'e4808690a9b5381880c573abd81cffdd')
build() {
cd ${srcdir}/$pkgname-$pkgver
install -d ${srcdir}/$pkgname-$pkgver/build
cd ${srcdir}/$pkgname-$pkgver/build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
make
}
package(){
cd ${srcdir}/$pkgname-$pkgver/build
make DESTDIR=${pkgdir} install
install -D -m644 ${srcdir}/$pkgname-mimetypes.xml \
${pkgdir}/usr/share/mime/packages/$pkgname-mimetypes.xml
}