summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 134ac6383b07e288cbc4f3a4b9614821e06732d7 (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
# Maintainer: Marcos Ferreira <merkkp at gmail dot com>

_gitname="bpkg"
pkgname="${_gitname}-git"
pkgver=0.2.9.1.g72c9a90
pkgrel=1
pkgdesc="Lightweight bash package manager"
arch=("any")
url="https://bpkg.io"
license=("MIT")
depends=("bash")
makedepends=("git")
provides=("${_gitname}")
conflicts=("${_gitname}")
source=("git+https://github.com/bpkg/${_gitname}")
md5sums=("SKIP")

pkgver() {
  cd "${_gitname}"
  git describe --tags --long | sed 's/^v//;s/-/./;s/-/./g'
}

package() {
  cd "${srcdir}/${_gitname}"
  PREFIX="${pkgdir}/usr" ./setup.sh
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et: