1 # Maintainer: Berseker <berseker86 at gmail dot com>
2 pkgname=imageshack-uploader-script
3 _pkgname=imageshack-uploader
6 pkgdesc="An useful uploader for the ImageShack.us website in PyGTK - with thumb links and preview"
8 url="http://gtk-apps.org/content/show.php?content=109635"
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)
19 ar x ${_pkgname}_${pkgver}_all.deb
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')