1 # Maintainer: Luminous Fennell <mstrlu_REMOVETHIS_@gmx.net>
2 pkgname=emacs-bongo-git
5 pkgdesc='Buffer-oriented media player for GNU Emacs'
7 url="https://github.com/dbrock/bongo"
11 install=emacs-bongo.install
13 _gitroot=https://github.com/dbrock/bongo.git
14 _gitname=emacs-bongo-git
18 msg "Connecting to GIT server...."
20 if [[ -d "$_gitname" ]]; then
21 cd "$_gitname" && git pull origin
22 msg "The local files are updated."
24 git clone "$_gitroot" "$_gitname"
27 msg "GIT checkout done or server timeout"
28 msg "Starting build..."
30 rm -rf "$srcdir/$_gitname-build"
31 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32 cd "$srcdir/$_gitname-build"
37 # Only info file has to be built
39 makeinfo bongo.texinfo -o info/bongo
43 cd "$srcdir/$_gitname-build"
46 mkdir -p "$pkgdir/usr/share/emacs/site-lisp/bongo"
47 cp -r -t "$pkgdir/usr/share/emacs/site-lisp/bongo" \
52 # install helper applications
53 mkdir -p "$pkgdir/usr/share/$pkgname"
54 cp -r -t "$pkgdir/usr/share/$pkgname" contrib
57 mkdir -p "${pkgdir}/usr/share/info"
58 cp -r -t "${pkgdir}/usr/share/info" info/bongo
60 # install misc. documentation
61 mkdir -p "${pkgdir}/usr/share/docs/$pkgname"
62 cp -r -t "${pkgdir}/usr/share/docs/$pkgname" \
70 # vim:set ts=2 sw=2 et: