summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3225f03e7cd43c2f6417be5405aec97cbde37921 (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: LunarEclipse <luna@lunareclipse.zone>

pkgname=queercat-git
pkgver=r24.551c199
pkgrel=1
pkgdesc="A version of lolcat with options for some lgbtq+ flags."
arch=('any')
url="https://github.com/Elsa002/queercat"
license=('Unlicense')
depends=()
makedepends=('gcc' 'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+https://github.com/Elsa002/queercat")
sha512sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname"

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

build() {
    cd "$srcdir/$pkgname"

    gcc 'main.c' -lm -o 'queercat'
}

package() {
    cd "$srcdir/$pkgname"

    install -Dt "$pkgdir/usr/bin/" 'queercat'
}