summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d6e1b03e7f5e3f08fb7cf3b69a966aa20c6e1c7 (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: Justin Dray <justin@dray.be>

pkgname=dmakepkg-git
pkgver=r21.42ee55d
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"
  install -Dm644 "${srcdir}/docker-makepkg/zsh-completion" "${pkgdir}/usr/share/zsh/site-functions/_dockershell"
}