updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / textadept-beta / PKGBUILD
blobf8e8cfb831cc3c001755dfe7df7f723f0e1a2ca3
1 # Maintainer: M Rawash <mrawash@gmail.com>
3 pkgname=textadept-beta
4 _pkgname=textadept
5 pkgver=4.0
6 pkgrel=1
7 pkgdesc="A ridiculously fast and extensible text editor - beta version."
8 arch=('i686' 'x86_64')
9 url="http://code.google.com/p/textadept"
10 license=('MIT')
11 depends=('gtk2' 'lua')
12 makedepends=('unzip')
13 provides=('textadept')
14 install=${pkgname}.install
15 source=(http://textadept.googlecode.com/files/${_pkgname}_${pkgver}_beta_2.src.zip
16         textadept.desktop
17         pkgbuild.lua)
18 md5sums=('68e21531aabdec612d88ccf1af6cbb2d'
19          '483d700a3dd95f84754bd61ae524dc74'
20          'f0b2f243460b231dbeb6f547d8c1822b')
22 build() {
23   cd "$srcdir/${_pkgname}_${pkgver}_beta_2"
25   cd src/scintilla/gtk
26   make || return 1
28   cd ../../
29   sed -i 's/\/usr\/local\//\/usr\//' lua/include/luaconf.h
30   make  || return 1
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
38   #now clean this mess
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