blob: 01005b0e5716eebd5e0bb29613d5d707c4a974df (
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: Rolv Apneseth <rolv.apneseth@gmail.com>
pkgname=rofi-calc-git
_pkgname=rofi-calc
pkgver=r220.a613682
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" "meson")
conflicts=("$_pkgname")
provides=("$_pkgname")
source=("git+https://github.com/svenstaro/${_pkgname}")
b2sums=('SKIP')
options=(!debug)
pkgver()
{
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build()
{
arch-meson "$_pkgname" build
meson compile -C build
}
package()
{
meson install -C build --destdir "$pkgdir" --no-rebuild
install -Dm 644 "$_pkgname/LICENSE" -t "${pkgdir}/usr/share/licenses/${_pkgname}"
}
|