diff options
author | Christian Hesse | 2015-06-30 10:01:02 +0200 |
---|---|---|
committer | Christian Hesse | 2015-06-30 10:01:02 +0200 |
commit | 0dc0d30d0cc0af2fb92f6405a0830f4f6ffd0aa4 (patch) | |
tree | e7f0c84216b18cc6919391c44c8bcd272a07eb8b /PKGBUILD | |
download | aur-gcstatistic.tar.gz |
initial import of gcstatistic 2.0.0b7-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4fd5e19a34f0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Christian Hesse <mail@eworm.de> + +pkgname=gcstatistic +pkgver=2.0.0b7 +pkgrel=1 +pkgdesc='Geocaching statistics tool' +arch=('i686' 'x86_64') +url='http://www.macdefender.org/products/GCStatistic/' +license=('GPL') +install=gcstatistic.install +depends_x86_86=('lib32-gcc-libs') +depends_i686=('gcc-libs') +makedepends=('imagemagick') +#source=("http://www.macdefender.org/downloads/software/GCStatistic${pkgver}L.zip" +source=("http://www.macdefender.org/downloads/software/beta/GCStatistic${pkgver}L.zip" + 'gcstatistic.png::http://macdefender.org/products/GCStatistic/index_files/ic64_gcstatistic.png' + 'gcstatistic.desktop' + 'gcstatistic') +sha256sums=('029c62841c8df2935dcd784dcb45d7b75304aa5a1850afb5842d9731f5839e1f' + '11ed02bacb65fd7f7048f7e1e8613cf020a896a5c89476bc14f97a34c451f925' + '1ae76c1cc8bf75f5d65a56f730caa9fe504a447b67c9549fae2465db03b4213f' + 'b5bb81bbac97846571a6d34c2e0fdb90633d1f53870d9ec693272c719bd9bf13') + +prepare() { + convert -scale 48x48 gcstatistic.png gcstatistic_48.png +} + +package() { + #cd "${srcdir}/GCStatistic${pkgver}F/" + cd "${srcdir}/GCStatistic${pkgver}/" + + mv 'GCStatistic Libs' 'GCStatistic_Libs' + sed -i 's/GCStatistic Libs/GCStatistic_Libs/g' GCStatistic + + for FILE in $(find -type f); do + # no permissions here, we take it as is + install -D ${FILE} ${pkgdir}/opt/${pkgname}/${FILE#./} + done + + install -D -m0755 ${srcdir}/gcstatistic ${pkgdir}/usr/bin/gcstatistic + + install -D -m0644 ${srcdir}/gcstatistic.png ${pkgdir}/usr/share/icons/hicolor/64x64/apps/gcstatistic.png + install -D -m0644 ${srcdir}/gcstatistic_48.png ${pkgdir}/usr/share/icons/hicolor/48x48/apps/gcstatistic.png + + install -D -m0644 ${srcdir}/gcstatistic.desktop ${pkgdir}/usr/share/applications/gcstatistic.desktop +} + |