updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gcstatistic / PKGBUILD
blob34edd4356679019abd6d2f26b02efb96c95d2895
1 # Maintainer: Christian Hesse <mail@eworm.de>
3 pkgname=gcstatistic
4 pkgver=1.9.8b8
5 pkgrel=1
6 pkgdesc="Geocaching statistics tool"
7 arch=('i686' 'x86_64')
8 url="http://www.macdefender.org/products/GCStatistic/"
9 license=('GPL')
10 #source=("http://www.macdefender.org/downloads/software/GCStatistic${pkgver}L.zip")
11 source=("http://www.macdefender.org/downloads/software/beta/GCStatistic${pkgver}L.zip")
13 build() {
14   cd "${srcdir}/GCStatistic${pkgver}/"
16   mv "GCStatistic Libs" "GCStatistic_Libs"
17   sed -i "s/GCStatistic Libs/GCStatistic_Libs/g" GCStatistic
19   rename ' - ' '_' Resources/Languages/*
21   for FILE in `find -type f`; do
22     install -D ${FILE} ${pkgdir}/opt/${pkgname}/${FILE#./}
23   done
25   mkdir -p ${pkgdir}/usr/bin/
26   cat >${pkgdir}/usr/bin/${pkgname}<<EOF
27 #!/bin/sh
29 # we need a writeable directory with exec mount option
30 cd /tmp
32 # we want the config file in home directory, so we link it
33 ln -sf \${HOME}/.GCStatistic.conf
35 # just execute
36 exec /opt/${pkgname}/GCStatistic
37 EOF
38   chmod 0755 ${pkgdir}/usr/bin/${pkgname}
41 md5sums=('babce2282c60b5cf39c889b093653d85')