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 | |
download | aur-97f33daa900dfa9861b52bd004fb7d0ea5ad9027.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b98113ab12ea --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Wed Oct 11 01:32:20 UTC 2017 +pkgbase = simple-weather-indicator + pkgdesc = A simple weather indicator + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/kasramp/UbuntuIndicatorWeather + arch = i686 + arch = x86_64 + license = GPL3 + depends = libappindicator-gtk3 + depends = libnotify + depends = python2-retrying + depends = python2-gobject + source = simple-weather-indicator-1.0.tar.gz::https://github.com/kasramp/UbuntuIndicatorWeather/archive/v1.0.tar.gz + sha256sums = 983dfb9821d4a3b2350fb062578350f54cc81485f985dad7364d96fb4df99f0e + +pkgname = simple-weather-indicator + 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 +} |