desktop/kim/PKGBUILD
2016-12-20 22:22:19 +00:00

42 lines
1.1 KiB
Bash

pkgname=kim
_pkgname=kim4
pkgver=0.9.5
pkgrel=7
pkgdesc="KDE image menu to compress, resize, convert, rename and much more."
arch=('x86_64')
url="http://www.kde-apps.org/content/show.php?content=11505"
license=('GPL3')
depends=('imagemagick' 'kdelibs' 'kdialog')
replaces=('kim4')
categories=('graphics')
source=("http://bouveyron.free.fr/kim/release/$_pkgname-$pkgver.tar.gz")
md5sums=('c7934ab0dbf988da5f60d9c4cbf97dd5')
package() {
cd $_pkgname
# Create needed directories.
install -d $pkgdir/usr/share/kservices5/ServiceMenus/
install -d $pkgdir/usr/bin
# Install.
cp src/kim_*.desktop $pkgdir/usr/share/kservices5/ServiceMenus/
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
# 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
}