summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91d5f328653676e8859dbf5d741391d5c215ca83 (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
# Maintainer: Federico Di Pierro <nierro92@gmail.com>

pkgname=qarma-git
_gitname=qarma
pkgver=20
pkgrel=7
pkgdesc="A drop-in replacement clone for zenity, written in Qt4/5, Qt5 build"
arch=('i686' 'x86_64')
url="https://github.com/luebking/qarma"
license=('GPL')
depends=('qt5-base' 'qt5-x11extras')
makedepends=('git')
provides=('qarma' 'zenity')
conflicts=('zenity' 'qarma')
source=("git://github.com/luebking/qarma.git")
md5sums=("SKIP")

pkgver() {
	cd ${_gitname}
    git rev-list --count HEAD
}

build()
{
    cd $srcdir/$_gitname
    qmake-qt5
    make
}

package() {
    cd $srcdir/$_gitname
    strip qarma
    mkdir -p $pkgdir/usr/bin
    cp qarma $pkgdir/usr/bin
    ln -s /usr/bin/qarma $pkgdir/usr/bin/zenity
}