1 #maintainer: Your Name <youremail at domain dot com>
6 pkgdesc="A simple utility to change the code page of plain text based files."
8 url="http://cpconverter.googlecode.com"
11 depends=('python2' 'pygtk>=2.12')
19 install=${pkgname}.install
20 source=(http://cpconverter.googlecode.com/files/${pkgname}_${pkgver}.tar.gz
25 mkdir -p ${pkgdir}/{etc/profile.d,opt/cpconverter} || return 1
26 cd ${srcdir}/${pkgname}_${pkgver} || return 1
27 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' cpConverter.py || return 1
28 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' cpConverter.py || return 1
31 sed -i s/'\".\/gui\/gui\.xml\"/os\.path\.join(os\.path\.dirname(__file__),\ \"gui\/gui\.xml\")/g' cpConverter.py
32 sed -i s/'\".\/gui\/preview\.xml\"/os\.path\.join(os\.path\.dirname(__file__),\ \"gui\/preview\.xml\")/g' cpConverter.py
34 # Use aother file as main excutable
35 cp cpConverter.py cpconverter || return 1
36 chmod +x cpconverter || return 1
39 cp -r ${srcdir}/${pkgname}_${pkgver}/* ${pkgdir}/opt/cpconverter || return 1
41 # Install shell script
42 install -m644 ${srcdir}/${pkgname}.sh ${pkgdir}/etc/profile.d/${pkgname}.sh || return 1
44 md5sums=('71411b5687b8cd367c9ee5de0f73b6a9'
45 '816230447563c835cb37a0c95dcf98b1')