summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52b7a4a87a4dea5c831c156ac5c9397310204de2 (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
# Maintainer: Mathieu Lemay <acidrain1@gmail.com>
# Contributor: James An <james@jamesan.ca>
# Contributor: katanasov <pranayama111@gmail.com>

_pkgname=evolution-on
pkgname="$_pkgname-git"
pkgver=v3.24.2.r0.g4794055
pkgrel=1
pkgdesc='Plugin to put evolution in system tray.'
arch=('i686' 'x86_64')
url="https://github.com/zsugabubus/$_pkgname"
license=('GPL')
depends=('evolution>=2.30' 'gconf' 'libnotify')
makedepends=('git' 'autoconf>=2.53' 'automake>=1.8''libtool>=1.4.3' 'glib2>=2.2.0' 'pkgconf>=1.5.1' 'intltool>=0.25' 'gnome-common>=2.3.0')
provides=("$_pkgname")
conflicts=("$_pkgname" 'evolution-tray' 'evolution-tray-arch')
replaces=('evolution-tray' 'evolution-tray-arch')
install="$pkgname.install"
source=("$_pkgname"::"git+https://github.com/zsugabubus/$_pkgname.git")
md5sums=('SKIP')

pkgver() {
    cd "$_pkgname"
    (
        set -o pipefail
        git describe --long --tag | sed -r 's/([^-]*-g)/r\1/;s/-/./g' ||
        printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    )
}

build() {
    cd "$_pkgname"
    ./autogen.sh --prefix=/usr
    make
}

package() {
    cd "$_pkgname"
    make DESTDIR="$pkgdir/" install
}