summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22ef475897f8a2bca844246f993fd435983dd6e7 (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: Paul Wilde<paul@paulwilde.uk>
_pkgname=clonk-git
pkgname=${_pkgname}
pkgver=4c1eafa
pkgrel=1
pkgdesc="A simple X11 clock widget like xclock"
url="https://codeberg.org/pswilde/clonk.git"
arch=(any)
license=("AGPLv3")
depends=(
    xorg-server
)
sha256sums=('SKIP')
makedepends=(
    git
    make
    nim
    nimble
)
source=("${_pkgname%}::git+https://codeberg.org/pswilde/clonk")
conflicts=("${_pkgname}")
provides=(clonk)
pkgver() {
    cd "${_pkgname%}"
    printf "$(git rev-parse --short HEAD)"
}
build() {
    cd "${_pkgname%}"
    nimble build
}
package() {
    cd "${srcdir}/${_pkgname}"
    mkdir -p "${pkgdir}/usr/local/bin"
    install -Dm755 clonk -t "${pkgdir}/usr/local/bin"
    cd "${srcdir}"
}