diff options
author | Ted Alff | 2017-10-10 21:32:29 -0400 |
---|---|---|
committer | Ted Alff | 2017-10-10 21:32:29 -0400 |
commit | 97f33daa900dfa9861b52bd004fb7d0ea5ad9027 (patch) | |
tree | 96cb6b7d19599dcb5daf03f8546cd9cdb544b199 /PKGBUILD | |
download | aur-97f33daa900dfa9861b52bd004fb7d0ea5ad9027.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fa3a975f715d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: twa022 <twa022 at gmail dot com> + +_pkgname=UbuntuIndicatorWeather +pkgname=simple-weather-indicator +pkgver=1.0 +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=('983dfb9821d4a3b2350fb062578350f54cc81485f985dad7364d96fb4df99f0e') + +prepare() { + cd "${_pkgname}-${pkgver}" + + # Don't install to /opt and install locales to correct directory + find . -type f -exec sed -i 's:ubuntu-indicator-weather:simple-weather-indicator:g' '{}' \; + + 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 +} |