Advertisement
Guest User

Untitled

a guest
Jun 4th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.03 KB | None | 0 0
  1. # Maintainer: crazyelf5
  2.  
  3. pkgname=deepin-scrot
  4. pkgver=2.0
  5. pkgrel=1
  6. _pkgrel=1
  7. pkgdesc="A screenshot tool with Linux Deepin modifications"
  8. url="http://packages.linuxdeepin.com/deepin/pool/main/d/deepin-scrot"
  9. arch=('any')
  10. license=('LGPL3')
  11. depends=('pygtk' 'python-xlib' 'python2')
  12. conflicts=('deepin-scrot-git')
  13. source=("${url}/${pkgname}_${pkgver}.orig.tar.gz" 'fix_shot.patch')
  14. md5sums=('e8933212829e2e8a119706935e1c3feb'
  15.          'af9762d939e39c6820e23dd2cb2e45fb')
  16.  
  17. package() {
  18.   cd lovesnow*
  19.  
  20.   patch -Np1 -i "$srcdir/fix_shot.patch"
  21.   sed -i 's|locale/|../../pkg/usr/share/deepin-scrot/locale/|' ./updateTranslate.sh
  22.   sed -i 's|python|python2|' src/*.py
  23.  
  24.   ./updateTranslate.sh
  25.  
  26.   install -dm755 "$pkgdir"/usr/{bin,share/{$pkgname,doc/$pkgname}}
  27.   install -m644 debian/copyright AUTHORS ChangeLog README "$pkgdir/usr/share/doc/$pkgname/"
  28.   cp -rf src theme "$pkgdir/usr/share/$pkgname/"
  29.  
  30.   chmod +x "$pkgdir/usr/share/$pkgname/src/deepinScrot.py"
  31.  
  32.   ln -fs /usr/share/$pkgname/src/$pkgname "$pkgdir/usr/bin/$pkgname"
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement