PKGBUILDs/community/adesklet-weatherforecast/PKGBUILD

43 lines
1.9 KiB
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# $Id: PKGBUILD 346 2009-07-26 14:24:20Z jlichtblau $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
pkgname=adesklet-weatherforecast
pkgver=0.2.2
pkgrel=1
pkgdesc="Extended weather desklet that shows three day forecast."
arch=('i686' 'x86_64')
url="http://adesklets.sourceforge.net/desklets.html"
license=('GPL2')
depends=('adesklets')
groups=('adesklet-desklets')
source=(http://downloads.sourceforge.net/sourceforge/adesklets/weatherforecast-${pkgver}.tar.bz2 \
liquid_45.png \
liquid_46.png \
liquid_47.png \
um_46.png)
md5sums=('fd647ecc0306c0d1e847adab8bcfb685'
'781f726262f44a15eeec95f46ceb5a51'
'824139567bc469d6193aa31e9343e339'
'd70bc9d3d2acd5d488e51e2eb4c73c7e'
'176f9011299b32663455ae9de5122d31')
build() {
cd ${srcdir}
install -d ${pkgdir}/usr/share/adesklets/weatherforecast || return 1
cp -a ${srcdir}/weatherforecast-${pkgver}/* ${pkgdir}/usr/share/adesklets/weatherforecast/ || return 1
#Fixing missing icons
cp ${srcdir}/weatherforecast-$pkgver/icons/liquid/25.png ${pkgdir}/usr/share/adesklets/weatherforecast/icons/liquid/na.png || return 1
cp ${srcdir}/liquid_45.png ${pkgdir}/usr/share/adesklets/weatherforecast/icons/liquid/45.png || return 1
cp ${srcdir}/liquid_46.png ${pkgdir}/usr/share/adesklets/weatherforecast/icons/liquid/46.png || return 1
cp ${srcdir}/liquid_47.png ${pkgdir}/usr/share/adesklets/weatherforecast/icons/liquid/47.png || return 1
cp ${srcdir}/weatherforecast-$pkgver/icons/um/25.png ${pkgdir}/usr/share/adesklets/weatherforecast/icons/um/na.png || return 1
cp ${srcdir}/um_46.png ${pkgdir}/usr/share/adesklets/weatherforecast/icons/um/46.png || return 1
chown root:adesklets ${pkgdir}/usr/share/adesklets/weatherforecast || return 1
chmod 775 ${pkgdir}/usr/share/adesklets/weatherforecast || return 1
}