summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c6bb82d3307f9d80f7ccf99f82746c6200472638 (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
# Maintainer: Peter Züger <zueger.peter@icloud.com>

pkgname=qalculate-gtk-git
_pkgname="${pkgname%-git}"
pkgver=r387.ac03bc3
pkgrel=1
pkgdesc="GTK frontend for libqalculate"
arch=('x86_64')
url="https://qalculate.github.io/"
license=('GPL')
depends=('libqalculate' 'gtk3')
makedepends=('intltool' 'rarian' 'git')
optdepends=('yelp: for displaying the help')
conflicts=('qalculate-gtk')
provides=('qalculate-gtk')
source=('git+https://github.com/Qalculate/qalculate-gtk.git')
md5sums=('SKIP')

pkgver() {
    cd "$_pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "$_pkgname"
    ./autogen.sh
}

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

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