1 # Maintainer: M Rawash <mrawash@gmail.com>
7 pkgdesc="A ridiculously fast and extensible text editor - beta version."
9 url="http://code.google.com/p/textadept"
11 depends=('gtk2' 'lua')
13 provides=('textadept')
14 install=${pkgname}.install
15 source=(http://textadept.googlecode.com/files/${_pkgname}_${pkgver}_beta_2.src.zip
18 md5sums=('68e21531aabdec612d88ccf1af6cbb2d'
19 '483d700a3dd95f84754bd61ae524dc74'
20 'f0b2f243460b231dbeb6f547d8c1822b')
23 cd "$srcdir/${_pkgname}_${pkgver}_beta_2"
29 sed -i 's/\/usr\/local\//\/usr\//' lua/include/luaconf.h
32 #there's no target install - installing manually
33 mkdir -p ${pkgdir}/usr/{bin,share}
34 cp -r ${srcdir}/${_pkgname}_${pkgver}_beta_2 ${pkgdir}/usr/share/${pkgname}
35 ln -sf /usr/share/${pkgname}/textadept ${pkgdir}/usr/bin/${pkgname}
36 install -Dm644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
39 rm -r ${pkgdir}/usr/share/${pkgname}/{src,LICENSE}
41 #make ta pkgbuild friendly
42 install -Dm644 $srcdir/pkgbuild.lua $pkgdir/usr/share/${pkgname}/lexers/pkgbuild.lua
43 echo -e "\n% PKGBUILD\nPKGBUILD pkgbuild\ninstall pkgbuild" >> \
44 $pkgdir/usr/share/${pkgname}/modules/textadept/mime_types.conf
46 #freedesktop.org stuff
47 install -Dm644 ${pkgdir}/usr/share/${pkgname}/core/images/ta_128x128.png \
48 ${pkgdir}/usr/share/pixmaps/${pkgname}.png
49 install -Dm644 ${srcdir}/${_pkgname}.desktop \
50 ${pkgdir}/usr/share/applications/${pkgname}.desktop