summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 65a53e992be6fbd017647d1838b5e924c664d454 (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
# Contributor: L42y <423300@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=emacs-mew-git
pkgver=6.8.r36.g3bc70db
pkgrel=1
epoch=1
arch=('x86_64' 'i686')
pkgdesc="Messaging in the  Emacs World"
url="http://www.mew.org/"
license=('custom')
depends=('emacs')
optdepends=('ruby')
conflicts=('emacs-mew')
provides=('emacs-mew')
source=('mew-git::git://github.com/kazu-yamamoto/Mew.git')
md5sums=('SKIP')

pkgver() {
  cd ${pkgname#emacs-}
  # Git tag
  echo $(git describe --tags|sed 's/-/.r/'|tr - .|cut -c2-)
}

build() {
  cd ${pkgname#emacs-}
  ./configure --prefix=/usr
}

package() {
  cd ${pkgname#emacs-}
  make DESTDIR="$pkgdir/" install
  install -D -m644 00copyright \
    "$pkgdir"/usr/share/licenses/emacs-mew-git/00copyright 
}