[arch-commits] Commit in deluge/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Sun Aug 31 19:35:37 UTC 2014


    Date: Sunday, August 31, 2014 @ 21:35:37
  Author: heftig
Revision: 220847

Don't patch python files post-install

Modified:
  deluge/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-08-31 19:25:05 UTC (rev 220846)
+++ PKGBUILD	2014-08-31 19:35:37 UTC (rev 220847)
@@ -5,7 +5,7 @@
 
 pkgname=deluge
 pkgver=1.3.7
-pkgrel=2
+pkgrel=3
 pkgdesc="A BitTorrent client with multiple user interfaces in a client/server model"
 arch=('any')
 url="http://deluge-torrent.org/"
@@ -26,6 +26,7 @@
 
 prepare() {
   cd $pkgname-$pkgver
+  sed -i '1s/python$/&2/' deluge/ui/Win32IconImagePlugin.py
 }
 
 build() {
@@ -37,13 +38,9 @@
   cd $pkgname-$pkgver
   python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
 
-  sed -i '1s/python$/&2/' \
-    "$pkgdir/usr/lib/python2.7/site-packages/deluge/ui/Win32IconImagePlugin.py"
+  install -Dm644 ../deluged.service "$pkgdir/usr/lib/systemd/system/deluged.service"
+  install -Dm644 ../deluge-web.service "$pkgdir/usr/lib/systemd/system/deluge-web.service"
 
-  cd ..
-  install -Dm644 deluged.service "$pkgdir/usr/lib/systemd/system/deluged.service"
-  install -Dm644 deluge-web.service "$pkgdir/usr/lib/systemd/system/deluge-web.service"
-
   install -d "$pkgdir/srv"
   install -d -m 775 -o 125 -g 125 "$pkgdir/srv/deluge"
 }




More information about the arch-commits mailing list