Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
817 B

7 years ago
  1. # Maintainer: Sabart Otto - Seberm <seberm[at]gmail[dot].com
  2. pkgname=kde-servicemenus-unlockpdf
  3. pkgver=1
  4. pkgrel=1
  5. pkgdesc="Unlock PDF files using Dolphin or Konqueror (KDE5 Dolphin action)"
  6. url=()
  7. arch=('any')
  8. license=('BSD')
  9. install=''
  10. source=(pdfunlock.patch)
  11. depends=('ghostscript' 'dolphin')
  12. optdepends=()
  13. conflicts=()
  14. #provides=''
  15. makedepends=()
  16. prepare() {
  17. mkdir $pkgname-$pkgver
  18. cd $srcdir/$pkgname-$pkgver
  19. touch pdfunlock.sh pdfunlock.desktop
  20. patch -Np1 -i "$srcdir/pdfunlock.patch"
  21. }
  22. package() {
  23. mkdir -p $pkgdir/usr/share/kservices5/ServiceMenus/
  24. cp $srcdir/$pkgname-$pkgver/{pdfunlock.desktop,pdfunlock.sh} $pkgdir/usr/share/kservices5/ServiceMenus/
  25. chmod 755 $pkgdir/usr/share/kservices5/ServiceMenus/{pdfunlock.desktop,pdfunlock.sh}
  26. }
  27. md5sums=('a1880f1e3b2f0d4b8f90c34a2ea09cef')