# Maintainer: twa022 _pkgname=UbuntuIndicatorWeather pkgname=simple-weather-indicator pkgver=1.1 pkgrel=1 pkgdesc='A simple weather indicator' arch=('i686' 'x86_64') url='https://github.com/kasramp/UbuntuIndicatorWeather' license=('GPL3') depends=('libappindicator-gtk3' 'libnotify' 'python2-retrying' 'python2-gobject') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kasramp/UbuntuIndicatorWeather/archive/v${pkgver}.tar.gz") sha256sums=('751155f3fb8037c31e6ffee51d1411a50bef0901c3ed43fb001589f1efb29f44') prepare() { cd "${_pkgname}-${pkgver}" # Don't install to ubuntu- directory find . -type f -exec sed -i 's:ubuntu-indicator-weather:simple-weather-indicator:g' '{}' \; # python2 fix sed -i 's:exec python:&2:' indicator-weather } package() { cd "${_pkgname}-${pkgver}" while read file dest ; do [ ! -d "${pkgdir}/${dest}" ] && mkdir -p "${pkgdir}/${dest}" install -m644 "${file}" "${pkgdir}/${dest}" done < debian/install chmod 755 "${pkgdir}"/usr/lib/simple-weather-indicator/indicator-weather mkdir -p "${pkgdir}"/usr/bin ln -s /usr/lib/simple-weather-indicator/indicator-weather "${pkgdir}"/usr/bin/indicator-weather }