1 # Maintainer: Christian Hesse <mail@eworm.de>
6 pkgdesc="Geocaching statistics tool"
8 url="http://www.macdefender.org/products/GCStatistic/"
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")
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#./}
25 mkdir -p ${pkgdir}/usr/bin/
26 cat >${pkgdir}/usr/bin/${pkgname}<<EOF
29 # we need a writeable directory with exec mount option
32 # we want the config file in home directory, so we link it
33 ln -sf \${HOME}/.GCStatistic.conf
36 exec /opt/${pkgname}/GCStatistic
38 chmod 0755 ${pkgdir}/usr/bin/${pkgname}
41 md5sums=('7397220572d8a18c8942fe99eddc5056')