1 # Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
7 pkgdesc='Free daily cycle in which the parameters can save routes traveled by bicycle.'
9 url="http://www.bike4win.pl"
13 install='bike4win.install'
16 source=("http://www.bike4win.pl/homepage/Pobierz_files/${_pkgname}-32bit-${pkgver}.deb")
17 _pkgname=${_pkgname}-32bit-${pkgver}.deb
18 md5sums=('f67bfa548a0ee53ed9c944dd38bb5fb1')
21 source=("http://www.bike4win.pl/homepage/Pobierz_files/${_pkgname}-64bit-${pkgver}.deb")
22 _pkgname=${_pkgname}-64bit-${pkgver}.deb
23 md5sums=('7a11007ef9fe482f6b93210d8cb73dc0')
27 cd "$srcdir" || return 1
28 #ar x ${_pkgname} data.tar.gz || return 1
29 tar zxf data.tar.gz || return 1
31 install -dm755 ${pkgdir}/usr/share/{applications,menu,pixmaps} || return 1
32 install -dm755 ${pkgdir}/usr/bin || return 1
34 install -Dm755 ${srcdir}/usr/local/bike4win/bike4win ${pkgdir}/usr/bin/ || return 1
35 install -Dm644 ${srcdir}/usr/local/bike4win/bike4win.png ${pkgdir}/usr/share/pixmaps/ || return 1
36 install -Dm644 ${srcdir}/usr/share/applications/bike4win.desktop ${pkgdir}/usr/share/applications/ || return 1
37 install -Dm644 ${srcdir}/usr/share/menu/bike4win ${pkgdir}/usr/share/menu/ || return 1
39 sed -i -e 's#Exec=/usr/local/bike4win/bike4win#Exec=/usr/bin/bike4win#' \
40 -e 's#Icon=/usr/local/bike4win/bike4win.png#Icon=/usr/share/pixmaps/bike4win.png#' \
41 ${pkgdir}/usr/share/applications/bike4win.desktop || return 1
42 sed -i -e 's#command="/usr/local/bike4win/bike4win"#command="/usr/bin/bike4win"#' \
43 -e 's#icon="/usr/local/bike4win/bike4win.png"#icon="/usr/share/pixmaps/bike4win.png"#' \
44 ${pkgdir}/usr/share/menu/bike4win || return 1
46 # vim:set ts=2 sw=2 et ft=sh et: