updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / kdeservicemenu-image2pdf / PKGBUILD
blob59e55bb7724a79a7053d6db438918fa9a5e50857
1 # Maintainer: Joffrey TISSERON <tisseron.joffrey@aliceadsl.fr>
3 _name=image2pdf
4 pkgname="kdeservicemenu-$_name"
5 _number=118537
6 pkgver=0.8
7 pkgrel=1
8 pkgdesc="Converts images to pdfs."
9 arch=('i686' 'x86_64')
10 url="http://kde-apps.org/content/show.php/$_name?content=$_number"
11 license=('GPL')
12 depends=('kdelibs' 'imagemagick')
13 conflicts=("$_name-servicemenu-kde4")
14 replaces=("$_name-servicemenu-kde4")
15 source=("http://kde-apps.org/CONTENT/content-files/$_number-$_name.desktop"
16         'image2pdf.patch')
17 md5sums=('0f9f9bde4ccac30eefa3803577885f11'
18          'ded49121382e11c743adb071e04014a7')
20 build() {
21   cd $srcdir
22   patch $_number-$_name.desktop image2pdf.patch
25 package() {
26    mkdir -p "$pkgdir/$(kde4-config --prefix)/share/kde4/services/ServiceMenus"
27    cp $srcdir/$_number-$_name.desktop "$pkgdir/$(kde4-config --prefix)/share/kde4/services/ServiceMenus/$_name.desktop"
28    chmod 644 "$pkgdir/$(kde4-config --prefix)/share/kde4/services/ServiceMenus/$_name.desktop"