updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / gosm / PKGBUILD
blobf321894f1f5053827588cbf6a03b9f044a27e460
1 # Maintainer: Jozef Riha <jose1711 at gmail dot com>
2 # Contributor: scrawl
3 # Contributor: Karro
5 pkgname=gosm
6 pkgver=0.09
7 pkgrel=4
8 pkgdesc="the Gtk OpenStreetMap Tool"
9 url="http://sourceforge.net/projects/gosm"
10 arch=('i686' 'x86_64')
11 license=('GPL')
12 depends=('libwebkit' 'libsvg-cairo' 'curl')
13 source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}.0.0.9.tar.gz" "gosm.desktop")
14 options=('!strip')
15 md5sums=('0401cf7022ec86b109bf5faa9291cb38'
16          '585f1b5c37496815d7d7c1edc69ec2cb')
18 build() {
19 mkdir -p ${pkgdir}/usr
20 cd $srcdir/${pkgname}
21 sed -i '/^CFLAGS/s/BUILD=0/BUILD=1/' Makefile
22 sed -i -e 's/dpkg-deb/echo dpkg-deb/' -e 's/rm -rf packages/echo /' Makefile
23 sed -i 's/png_infopp_NULL/NULL/' imageglue/imageglue.c
24 make || return 1
25 make deb
28 package() {
29 cd $srcdir/${pkgname}/packages/deb/usr
30 /bin/tar cf - * | ( cd ../../../../../pkg/usr/; tar xfp - )
31 install -D -m644 $srcdir/gosm.desktop $pkgdir/usr/share/applications/gosm.desktop || return 1