summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8cc61c541447b39611c04f91f7c167e1e0c192f1 (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: Martin Schrodt <martin@schrodt.org>
pkgname=nvme-cli-git
_gitname=nvme-cli
pkgver=r1076.eb58f54
pkgrel=1
pkgdesc="NVM-Express user space tooling for Linux"
arch=('i686' 'x86_64')
url="https://github.com/linux-nvme/nvme-cli"
license=('GPL')
depends=('systemd')
makedepends=('git')
provides=('nvme-cli')
conflicts=('nvme-cli')
source=('git://github.com/linux-nvme/nvme-cli.git')
md5sums=('SKIP')

pkgver() { 
	cd "${srcdir}/${_gitname}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${srcdir}/${_gitname}"
	make CFLAGS="${CFLAGS} -I." PREFIX=/usr
}

package() {
	cd "${srcdir}/${_gitname}"
	make DESTDIR="$pkgdir" PREFIX=/usr SBINDIR=/usr/bin install
}