updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / emacs-org-mode / PKGBUILD
blob467eb91a427ef79d3e572ba9ed169c08a5f2311a
1 # Contributor: Jiyunatori <tori_LEAVETHISOUT_@0xc29.net>
2 # Contributor: mdev
3 # adopted by domanov <domanov_LEAVETHISOUT_@gmail.com>
4 pkgname=emacs-org-mode
5 _srcname=org
6 pkgver=7.8.03
7 pkgrel=1
8 pkgdesc="Emacs Org Mode"
9 arch=('any')
10 url="http://orgmode.org/"
11 depends=(emacs)
12 license=('GPL')
13 install=emacs-org-mode.install
14 source=(http://orgmode.org/$_srcname-$pkgver.tar.gz)
16 build() {
17     cd "${startdir}/src/${_srcname}-${pkgver}"
19     ## get rid of DS_Store files
20     find . -name .DS_Store -exec rm {} \;
21     make compile || return 1
24 package() {
25     cd "${startdir}/src/${_srcname}-${pkgver}"
26     make prefix="${startdir}/pkg/usr" install || return 1
28     ## by default now we install also the contrib directory
29     install -d -m755 $pkgdir/usr/share/emacs/site-lisp/org_contrib || return 1
30     cp -r contrib/* $pkgdir/usr/share/emacs/site-lisp/org_contrib || return 1
32     ##! proper install of info files (thanks mdev)
33     ##! replace "orgmode" with "org" in the following lines if you want 
34     ##! to replace emacs own org's info files. You also need to change the .install.
35     install -D -m644 doc/org $pkgdir/usr/share/info/orgmode || return 1
36     gzip -9 $pkgdir/usr/share/info/orgmode || return 1
39 md5sums=('a24d0bab3cfcb305321e14c9e9afedba')