summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b42fe5e8e038ddb368484adedf95df8cdf7f210 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Justin Dray <justin@dray.be>

pkgname=dmakepkg-git
pkgver=r20.c4dee8c
pkgrel=1
pkgdesc='Makepkg running from within docker for clean builds without maintaining a chroot'
arch=('any')
url="https://github.com/justin8/docker-makepkg"
license=('MIT')
depends=('docker')
options=(!emptydirs)
install='dmakepkg.install'
source=(git+https://github.com/justin8/docker-makepkg.git)
md5sums=('SKIP')

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

package() {
  install -Dm755 "${srcdir}/docker-makepkg/dmakepkg" "${pkgdir}//usr/bin/dmakepkg"
}