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

pkgname=fireplace-git
pkgver=r56.aa2070b
pkgrel=1
pkgdesc='A cozy fireplace in your terminal'
arch=('x86_64')
url='https://github.com/Wyatt915/fireplace'
license=('MIT')
makedepends=('git')
source=("$pkgname::git+https://github.com/Wyatt915/${pkgname%-*}.git")
provides=("${pkgname%-*}=$pkgver")
conflicts=("${pkgname%-*}")
md5sums=('SKIP')

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

build()
{
    cd "$pkgname"
    make DESTDIR="$pkgdir"
}

package()
{
    cd "$pkgname"

    install -vDm755 -t "$pkgdir/usr/bin" fireplace
}