updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / notes-mode / PKGBUILD
blobd161cf5f9b0ed62ee9c52e7818d13dbd44c271f7
1 # Contributor: Alexander Rampp <alex@axgr.de>
2 pkgname=notes-mode
3 pkgver=1.27
4 pkgrel=1
5 pkgdesc="Notes-mode is an indexing system for on-line note-taking in Emacs"
6 arch=('i686')
7 url="http://www.isi.edu/~johnh/SOFTWARE/NOTES_MODE/"
8 license=('GPL2')
9 depends=('emacs>=19' 'perl>=5')
10 source=(http://www.isi.edu/~johnh/SOFTWARE/NOTES_MODE/$pkgname-$pkgver.tar.gz)
11 install='notes-mode.install'
12 md5sums=('35e033e7d33721e8fe2f89f226147321')
15 build() {
16   
17   cd "$srcdir/$pkgname-$pkgver"
18   
19   ./configure --prefix="$pkgdir/usr"  \
20                 --with-lisp-dir="${pkgdir}/usr/share/emacs/site-lisp" \
21                 || return 1
22   
23   make DESTDIR="$pkgdir" install || return 1
25   install -m755 -D  "$pkgdir/usr/share/notes-mode/notesinit" "$pkgdir/usr/bin/notesinit"
27   rm "$pkgdir/usr/share/info/dir"
28   # If umask is set too tight, make install gives wrong permissions for
29   # some files.  That is because cp is used in the makefile.
30   install -m644 README release "$pkgdir/usr/share/notes-mode"
31   install -m755 sample.notesrc "$pkgdir/usr/share/notes-mode"
32   install -m644 notes-mode.info "$pkgdir/usr/share/info/notes-mode"
33   gzip -9nf "$pkgdir/usr/share/info/notes-mode"