summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4847f603b2748d836930c743ffb34995d44e420b (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
# Maintainer: NĂ­colas F. R. A. Prado <nfraprado at protonmail dot com>
pkgname=pcmn-git
pkgver=v1.0.0.r0.1a525de0c29e
pkgrel=1
pkgdesc="Simple declarative package management for Arch Linux"
arch=('any')
url="https://gitlab.com/nfraprado/pcmn"
license=('GPL3')
depends=('pacman' 'python' 'yay')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('pcmn::git+https://gitlab.com/nfraprado/pcmn.git#branch=master')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	install -Dm755 pcmn.py "${pkgdir}/usr/bin/${pkgname%-git}"
	install -Dm755 config.json "${pkgdir}/usr/share/${pkgname%-git}/config.json"
	install -Dm755 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
	install -Dm755 README.rst "${pkgdir}/usr/share/doc/${pkgname%-git}/README.rst"
}