summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb13493028760ea7e2db99df8b9aeb6903ee49eb (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
# Maintainer: Sky Aw <sky100aw@gmail.com>

pkgname=fetchpac-git
pkgver=1.1.r8.g2bbf273
pkgrel=1
pkgdesc="A CLI tool written in Bash for printing system package information."
arch=('any')
url="https://github.com/sky-aw/fetchpac"
license=('GPL')
depends=('bash')
makedepends=('git')
source=("$pkgname::git+https://github.com/sky-aw/fetchpac.git")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  # cutting off 'v' prefix that presents in the git tag
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$pkgname"
  make DESTDIR="$pkgdir/" install
}