desktop/kim/PKGBUILD

42 lines
1.1 KiB
Bash
Raw Normal View History

2011-08-24 19:33:15 +08:00
pkgname=kim
_pkgname=kim4
pkgver=0.9.5
pkgrel=6
2011-08-24 19:33:15 +08:00
pkgdesc="KDE image menu to compress, resize, convert, rename and much more."
2015-02-18 19:02:50 +08:00
arch=('x86_64')
2011-08-24 19:33:15 +08:00
url="http://www.kde-apps.org/content/show.php?content=11505"
license=('GPL3')
depends=('imagemagick' 'kdelibs' 'kde-baseapps-kdialog')
2011-08-24 19:33:15 +08:00
replaces=('kim4')
categories=('graphics')
2015-02-18 19:02:50 +08:00
source=("http://bouveyron.free.fr/kim/release/$_pkgname-$pkgver.tar.gz")
2011-08-24 19:33:15 +08:00
md5sums=('c7934ab0dbf988da5f60d9c4cbf97dd5')
package() {
cd $_pkgname
2011-08-24 19:33:15 +08:00
# Create needed directories.
install -d $pkgdir/usr/share/kservices5/ServiceMenus/
2011-08-24 19:33:15 +08:00
install -d $pkgdir/usr/bin
# Install.
cp src/kim_*.desktop $pkgdir/usr/share/kservices5/ServiceMenus/
2011-08-24 19:33:15 +08:00
cp src/bin/kim_* $pkgdir/usr/bin/
# Fix permissions.
chmod a+rx $pkgdir/usr/bin/kim_*
chmod a+r $pkgdir/usr/share/kservices5/ServiceMenus/kim_*.desktop
2011-08-24 19:33:15 +08:00
# License.
install -Dm664 COPYING $pkgdir/usr/share/licenses/$pkgname/license.txt
# Slideshow.
install -d $pkgdir/usr/share/$pkgname/slideshow/
cp src/slideshow/* $pkgdir/usr/share/$pkgname/slideshow/
# Gallery.
install -d $pkgdir/usr/share/$pkgname/gallery
cp src/gallery/* $pkgdir/usr/share/$pkgname/gallery
}