blob: 8f0ad596c13435fd9a2d0ac42b34f04b20a13b46 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: jyantis <yantis@yantis.net>
# Most of this came from the official mairix PKGBUILD
# Credit goes to them
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
# Contributor: Giorgio Lando <patroclo7@gmail.com>
# Contributor: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de>
pkgname=mairix-git
pkgver=0.23.r8.g453fb27
pkgrel=1
pkgdesc='A program for indexing and searching emails'
arch=('i686' 'x86_64')
url='https://github.com/rc0/mairix'
license=('GPL')
depends=('bzip2' 'zlib')
source=('git+https://github.com/rc0/mairix.git')
sha256sums=('SKIP')
makedepends=('git' 'flex' 'bison')
provides=('mairix')
conflicts=('mairix')
install=mairix.install
pkgver() {
cd mairix
set -o pipefail
git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd mairix
./configure --prefix=/usr
make
}
package() {
cd mairix
# We don't need anything related to git in the package
rm -rf .git*
# Install License
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Install Documentation
install -D -m644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
make DESTDIR="${pkgdir}" install
mkdir -p $pkgdir/usr/share/
mv $pkgdir/usr/man $pkgdir/usr/share/
install -D -m 644 dotmairixrc.eg $pkgdir/etc/mairixrc.sample
}
# vim:set ts=2 sw=2 et:
|