summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a320143a1c7cb16d7bb05dda2707cb32028f2845 (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
#Maintainer: Julian Marcos <julian08@cock.li>

pkgname=bfetch-git
_gitname="bfetch"
pkgver=bc48bda12bcc61d2592c5c0aea0a393220fab042
pkgrel=1
pkgdesc="Simple Fetch program written in bash"
arch=('any')
url="https://gitlab.com/nautilor/bfetch"
license=('custom')
makedepends=('git')
optdepends=('')
provides=("bfetch")
conflicts=("superbfetch-git")
source=('git+https://gitlab.com/nautilor/bfetch')
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd $_gitname
}

build() {
  cd $_gitname
}

package() {
  cd $_gitname
  mkdir -p "${pkgdir}/usr/bin"
  mv "bfetch" "${pkgdir}/usr/bin/bfetch"
}