updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / imageshack-uploader-script / PKGBUILD
blob8883f77c487393007195cf0212c59c4578622a36
1 # Maintainer: Berseker <berseker86 at gmail dot com>
2 pkgname=imageshack-uploader-script
3 _pkgname=imageshack-uploader
4 pkgver=0.7
5 pkgrel=2
6 pkgdesc="An useful uploader for the ImageShack.us website in PyGTK - with thumb links and preview"
7 arch=('any')
8 url="http://gtk-apps.org/content/show.php?content=109635"
9 license=('GPL')
10 depends=('python2' 'pygtk')
12 conflict=('imageshack-uploader') # sadly official uploader has the same name of this script
13                                  # If you have some suggestions, you're welcome to post on the AUR page
15 source=(http://gtk-apps.org/CONTENT/content-files/109635-${_pkgname}_${pkgver}_all.tar.gz)
17 build() {
18   cd "$srcdir"
19   ar x ${_pkgname}_${pkgver}_all.deb  
22 package() {
23   cd "$srcdir"
24   tar xzvf data.tar.gz
26 # Patch for python2
27 cd "${srcdir}/usr/bin/"
28 sed -e "s_env python_&2_" -e "s_bin/python_&2_" -i `grep -rlE "(env python|bin/python)" .`
30 # Create directories and install files
31 install -d ${pkgdir}/usr/bin/
32 install -d ${pkgdir}/usr/share/applications
33 install -d ${pkgdir}/usr/share/locale/
34 install -d ${pkgdir}/usr/share/icons/
36 cp -R ${srcdir}/usr/bin/* ${pkgdir}/usr/bin
37 cp -R ${srcdir}/usr/share/applications/* ${pkgdir}/usr/share/applications
38 cp -R ${srcdir}/usr/share/locale/* ${pkgdir}/usr/share/locale
39 cp -R ${srcdir}/usr/share/icons/* ${pkgdir}/usr/share/icons
43 md5sums=('66d7ec3876c440c294a178cdc9e95cc2')