summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d6e28da39fe84bd1bc315cfd677665b9306edd8 (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
# Maintainer: Finn <finn-ja@gmx.de>

pkgname=commiefetch-git
pkgver=1.0
pkgrel=1
pkgdesc="Systeminfo-Tool mit kommunistischem ASCII-Logo, Bash-Integration und versteckten Anzeigemodi"
arch=('x86_64')
url="https://gitlab.com/arch1380517/commiefetch"
license=('CPL1')
depends=()
makedepends=('git' 'gcc' 'make')
source=("git+https://gitlab.com/arch1380517/commiefetch.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/commiefetch"
  echo "1.0.r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/commiefetch"
  make
}

package() {
  cd "$srcdir/commiefetch"
  make DESTDIR="$pkgdir" PREFIX=/usr install
  if [ -f LICENSE.md ]; then
    install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
  fi
}