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.

38 lines
1.1 KiB

  1. # Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
  2. # Contributor: Malina <mali#arch>
  3. pkgname=wine-launcher-creator
  4. pkgver=1.0.8
  5. pkgrel=1
  6. pkgdesc="python gui for creating wine launchers (icons and desktop files)"
  7. arch=('any')
  8. url="https://code.google.com/p/wine-launcher-creator/"
  9. license=('GPL')
  10. depends=('python2' 'icoutils' 'xdg-utils' 'python2-pyqt4')
  11. optdepends=('nautilus-actions: To integrate with nautilus')
  12. source=(
  13. "wine-launcher-creator-1.0.8.tar.gz"
  14. )
  15. md5sums=('b1b22cfd61dc19a8ef8cf060776008a3')
  16. install=${pkgname}.install
  17. prepare() {
  18. cd ${srcdir}/${pkgname}
  19. # python2 fix
  20. for file in $(find . -name "*.py" -print); do
  21. sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
  22. sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
  23. done
  24. sed -i s/1.0.6/${pkgver}/g wlcreator.desktop
  25. sed -i /nautilus/d Makefile
  26. sed -i /tor.desktop/d Makefile
  27. sed -i s,/usr/local,/usr,g wlcreator.py
  28. }
  29. package() {
  30. rm -rf ${pkgdir}
  31. cd ${srcdir}/${pkgname}
  32. make prefix="${pkgdir}/usr" install
  33. install -Dm0644 wlcreator.desktop ${pkgdir}/usr/share/applications/wlcreator.desktop
  34. }