summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1da6d6a73ba14d2607033fe81e928f99fc6ad468 (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
# Maintainer: Antonio Cardace <anto.cardace@gmail.com>
pkgname=kmailapplet-git
pkgver=1.0.r1.g79e3b1f
pkgrel=1
pkgdesc="A Mail Applet for the system tray to watch your Maildir box and get notifications whenever there's a new mail."
arch=('any')
url="https://github.com/ichigo663/KMailApplet"
license=('GPL3')
depends=('glibc' 'gcc-libs' 'boost-libs' 'qt5-base')
makedepends=('git' 'make' 'qt5-base')
provides=("$pkgname=$pkgver")
conflicts=("$pkgname")
source=("$pkgname::git+https://github.com/ichigo663/KMailApplet.git")
md5sums=("SKIP")

pkgver() {
    cd "$srcdir/$pkgname"
    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build() {
    cd "$srcdir/$pkgname"
    qmake -o Makefile build.pro
    make
}

package() {
    cd "$srcdir/$pkgname"
    cp -r usr etc $pkgdir
    chmod -R 755 "$pkgdir/usr" "$pkgdir/etc"
    mkdir -p "$pkgdir/usr/bin/"
    cp KMailApplet "$pkgdir/usr/bin/"
}