summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a93d6e7dfe91c2544927ba7710868d796cfd14d3 (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: Rolv Apneseth <rolv.apneseth@gmail.com>

pkgname=rofi-calc-git
_pkgname=rofi-calc
pkgver=r181.12fe2d5
pkgrel=2
pkgdesc='Do calculations in rofi'
url='https://github.com/svenstaro/rofi-calc'
arch=('x86_64')
license=('MIT')
depends=('rofi' 'libqalculate')
checkdepends=('check')
makedepends=("git" "autoconf" "automake" "libtool")
conflicts=("$_pkgname")
provides=("$_pkgname")
source=("git+https://github.com/svenstaro/${_pkgname}")
b2sums=('SKIP')

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

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

package()
{
    cd "$_pkgname"
    make DESTDIR="${pkgdir}/" install
    install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${_pkgname}"
}