blob: 156177c26eddf744693622af7903fc8e86e00960 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=sxemacs-git
pkgver=22.1.15.245.g28b6c19
pkgrel=1
pkgdesc="A derivation of xemacs - git checkout"
arch=('i686' 'x86_64')
url="http://www.sxemacs.org/"
license=('GPL')
depends=('libao' 'gpm' 'libtiff' 'jack' 'libmad' 'desktop-file-utils' 'compface' 'libpulse' 'libxaw' 'postgresql-libs' 'sox' 'openmotif' 'openssl')
makedepends=('git' 'texinfo' 'xbitmaps')
provides=('sxemacs')
conflicts=('sxemacs' 'xemacs')
source=('git+http://git.sxemacs.org/sxemacs')
md5sums=('SKIP')
install=sxemacs.install
_gitname="sxemacs"
options=('!libtool' '!makeflags')
pkgver() {
cd "$srcdir/${_gitname}"
git describe --tags | sed -e 's|-|.|g' -e 's|v||'
}
build() {
cd "$srcdir"
[ -d ${_gitname}/libltdl/m4 ] || mkdir -p ${_gitname}/libltdl/m4
[ -d build ] || mkdir -p build
cd build
../${_gitname}/autogen.sh
LIBS="$LIBS -ldl -fPIC" CFLAGS="$CFLAGS -I/usr/include/freetype2" \
../${_gitname}/configure --prefix=/usr --with-openssl
make
}
package() {
cd "$srcdir/build"
make DESTDIR="$pkgdir/" install
# remove conflict with ctags package
mv "$pkgdir"/usr/bin/{ctags,ctags.sxemacs}
mv "$pkgdir"/usr/share/man/man1/{ctags.1,ctags.sxemacs.1}
# remove conflict with other emacsen
mv "$pkgdir"/usr/bin/{etags,etags.sxemacs}
mv "$pkgdir"/usr/share/man/man1/{etags.1,etags.sxemacs.1}
mv "$pkgdir"/usr/share/info/cl.info \
"$pkgdir"/usr/share/info/cl-sxemacs.info
mv "$pkgdir"/usr/share/info/widget.info \
"$pkgdir"/usr/share/info/widget-sxemacs.info
}
|