summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4a91a0512c4f1545398986436bf84085f02f6d1 (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
36
37
38
39
40
41
42
43
# Maintainer: Hugo "ThePooN" Denizart <thepoon at cartooncraft dot fr>

_pkgname=nss-docker
pkgname=nss-docker-git
pkgver=r64.45db418
pkgrel=1
pkgdesc='NSS module for finding Docker containers'

url='https://github.com/dex4er/nss-docker'
license=('GPL2')

source=('git+https://github.com/dex4er/nss-docker.git')
sha256sums=('SKIP')

arch=('any')

makedepends=('git')

conflicts=('nss-docker')
provides=('nss-docker')

install="$pkgname".install

pkgver() {
	cd "${srcdir}/${_pkgname}"

	# Get the version number.
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${srcdir}/${_pkgname}"

	./autogen.sh
	./configure --prefix=/usr
	make
}

package() {
	cd "${srcdir}/${_pkgname}"

	make install DESTDIR="$pkgdir"
}