updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / geotoad / PKGBUILD
blob2ac5f9e6d28ebd59f24e856e2164f3193adc363c
1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
2 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
4 pkgname=geotoad
5 pkgver=3.14.6
6 pkgrel=1
7 pkgdesc="A tool to simplify geocaching"
8 arch=('any')
9 url="http://geotoad.googlecode.com/"
10 license=('custom')
11 depends=('ruby')
12 source=(http://geotoad.googlecode.com/files/$pkgname-$pkgver.tar.gz)
13 sha256sums=('9cf2a7b442072ad43cd2aca1c555578e767a49b978138582e431366326e6104f')
15 package() {
16   cd ${srcdir}/${pkgname}-${pkgver}
18   install -d ${pkgdir}/usr/{bin,share/${pkgname}}
19   cp -R * ${pkgdir}/usr/share/${pkgname}
21   echo -e "#!/bin/bash\n\n/usr/share/${pkgname}/geotoad.rb" > ${pkgdir}/usr/bin/${pkgname}
22   chmod 755 ${pkgdir}/usr/bin/${pkgname}
24 #license and man file
25   install -D -m644 COPYRIGHT.txt ${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT.txt
26   install -D -m644 $pkgname.1 ${pkgdir}/usr/share/man/man1/$pkgname.1
28 #removing Debian specific files
29   rm -rf ${pkgdir}/usr/share/$pkgname/debian