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