summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60119d74cf2f536345c1375e7f2e37d3d5a70ddc (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
# Maintainer: Vinicius Mayrink <vncsmyrnk@gmail.com>
pkgname=shell-utils-git
pkgver=r277.892902c # This gets auto-updated by the pkgver() function
pkgrel=1
pkgdesc="An attempt to be a shell-agnostic custom utilities tool."
arch=('x86_64')
url="https://github.com/vncsmyrnk/shell-utils"
license=('GPL-3.0')
depends=()
makedepends=('git' 'go')
provides=('util' 'util-complete' 'util-fetch')
conflicts=('util' 'util-complete' 'util-fetch')
source=("git+${url}.git")
sha256sums=('SKIP')
options=('!strip')

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

build() {
  cd "${pkgname%-git}" || return
  make
}

package() {
  cd "${pkgname%-git}" || return
  make install DESTDIR="$pkgdir"
}