pkgname=jasspa-me
relver=20090909
metreever=20091017
pkgver=20091011
pkgrel=1
pkgdesc="Jasspa.org microemacs editor"
arch=('i686' 'x86_64')
url="http://www.jasspa.com/"
license=('GPL')
groups=
provides=
depends=('ncurses')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=("${url}release_${relver}/jasspa-mesrc-${pkgver}.tar.gz"
"${url}release_${relver}/jasspa-metree-${metreever}.tar.gz")
md5sums=('a4db0f1b9bf6fd9699d13366e15305b9'
'82f250e7dbfc5ae2917230de76a24826')
build() {
cd ${startdir}/src/me091011/src
sed -i.bak -e '74d' -e'69,72d' linux26.gmk #Make sure we use ncurses
make -f linux26.gmk || return 1
mkdir -p ${startdir}/pkg/usr/bin
make -f linux26.gmk INSTDIR=${startdir}/pkg/usr/bin install || return 1
cp linux26.gmk.bak linux26.gmk
cd ${startdir}/src
# Install supporting files
install -d -o root -g root -m 0755 ${startdir}/pkg/usr/share/jasspa/{company,contrib,macros,spelling} ${startdir}/pkg/usr/share/pixmaps
install -o root -g root -m 0644 -t ${startdir}/pkg/usr/share/pixmaps jasspa/pixmaps/*
install -o root -g root -m 0644 -t ${startdir}/pkg/usr/share/jasspa/company jasspa/company/*
install -o root -g root -m 0644 -t ${startdir}/pkg/usr/share/jasspa/contrib jasspa/contrib/*
install -o root -g root -m 0644 -t ${startdir}/pkg/usr/share/jasspa/macros jasspa/macros/*
install -o root -g root -m 0644 -t ${startdir}/pkg/usr/share/jasspa/spelling jasspa/spelling/*
}