summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ca62fca24d8a073a5ea2904f416ae73a1d69f33 (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
# Maintainer: yuki-san <yuki.from.akita _at_ gmail.com>

pkgname=emacs-navi2ch-git
pkgver=1225.faebfd1
pkgrel=1
pkgdesc="A '2ch bbs' browser worked on Emacsen."
arch=( 'any' )
url="http://navi2ch.sourceforge.net/"
license=('GPL2')
depends=('emacs')
makedepends=('git')
provides=(emacs-navi2ch)
conflicts=(emacs-navi2ch)
install=navi2ch.install
source=("${pkgname%-git}"::'git://github.com/naota/navi2ch.git')
md5sums=('SKIP')
changelog=$pkgname.changelog


pkgver() {
  cd "$srcdir/${pkgname%-git}"
  # Use the tag of the last commit
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd "$srcdir/${pkgname%-git}"

  # ./autogen.sh
  ./configure --prefix=/usr \
              --with-lispdir=/usr/share/emacs/site-lisp/navi2ch \
              --with-icondir=/usr/share/icons/navi2ch
  make
}

package() {
  cd "$srcdir/${pkgname%-git}"
  make DESTDIR="$pkgdir/" install
} 

# vim:set ts=2 sw=2 et: