diff options
author | Robert Greener | 2017-03-03 13:08:13 +0000 |
---|---|---|
committer | Robert Greener | 2017-03-03 13:08:13 +0000 |
commit | 1205d4a72c16f4bfbffdd1f8d68d7f1b5c80c436 (patch) | |
tree | 7d6b61ff36171817f327e89d56a8bcb288f6c965 | |
download | aur-1205d4a72c16f4bfbffdd1f8d68d7f1b5c80c436.tar.gz |
ubuntu-indicator-weather 0.9 added
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 37 | ||||
-rw-r--r-- | indicator-weather.patch | 11 |
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c80e6305f145 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = ubuntu-indicator-weather + pkgdesc = A very simple weather indicator + pkgver = 0.9 + pkgrel = 1 + url = https://github.com/kasramp/UbuntuIndicatorWeather + arch = any + license = GPL + depends = python>=2.7.0 + depends = python2-urllib3 + depends = pygtk + depends = libappindicator-gtk2 + depends = python2-gobject + depends = hicolor-icon-theme + source = https://github.com/kasramp/UbuntuIndicatorWeather/archive/v0.9.tar.gz + source = indicator-weather.patch + sha256sums = b28ab8151da980b6622b4cc06bbc94316683cd4b58d2950c9c71979062a5e7c9 + sha256sums = 58a302906716e74879452fe5204a21cf19715edd05bcfd3be4fd0e03b7f040fc + +pkgname = ubuntu-indicator-weather + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4cbfc4af0815 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Robert Greener <robert at agreener dot uk> +pkgname=ubuntu-indicator-weather +_srcname=UbuntuIndicatorWeather +pkgver=0.9 +pkgrel=1 +pkgdesc="A very simple weather indicator" +arch=('any') +url="https://github.com/kasramp/UbuntuIndicatorWeather" +license=('GPL') +depends=('python>=2.7.0' 'python2-urllib3' 'pygtk' 'libappindicator-gtk2' 'python2-gobject' + 'hicolor-icon-theme') +source=("${url}/archive/v${pkgver}.tar.gz" "indicator-weather.patch") +sha256sums=('b28ab8151da980b6622b4cc06bbc94316683cd4b58d2950c9c71979062a5e7c9' + '58a302906716e74879452fe5204a21cf19715edd05bcfd3be4fd0e03b7f040fc') +_iconsizes=("16x16" "32x32" "64x64" "128x128" "256x256") + +prepare() { + cd "$_srcname-$pkgver" + patch -p1 -i "${srcdir}/indicator-weather.patch" +} + +package() { + cd "$_srcname-$pkgver" + mkdir -p "$pkgdir/usr/share/$pkgname" + cp -r * "$pkgdir/usr/share/$pkgname" + mkdir "$pkgdir/usr/share/applications" + mkdir "$pkgdir/usr/bin" + mkdir -p "$pkgdir/usr/share/icons/hicolor/16x16/apps" + cp "$pkgdir/usr/share/$pkgname/indicator-weather.desktop" "$pkgdir/usr/share/applications/indicator-weather.desktop" + ln -s "/usr/share/$pkgname/indicator-weather" "$pkgdir/usr/bin/indicator-weather" + + for i in "${_iconsizes[@]}" + do + mkdir -p "$pkgdir/usr/share/icons/hicolor/$i/apps" + cp "$pkgdir/usr/share/$pkgname/icons/$i/indicator-weather.png" "$pkgdir/usr/share/icons/hicolor/$i/apps/indicator-weather.png" + done +} diff --git a/indicator-weather.patch b/indicator-weather.patch new file mode 100644 index 000000000000..1dac01c12755 --- /dev/null +++ b/indicator-weather.patch @@ -0,0 +1,11 @@ +diff --git a/indicator-weather b/indicator-weather1 +index d7f2a9c..65e4ca6 100755 +--- a/indicator-weather ++++ b/indicator-weather1 +@@ -1,5 +1,4 @@ +- +-#! /bin/sh ++#! /bin/python2 + """:" + exec python $0 ${1+"$@"} + """ |