summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 145091bd494b7e4d9b71496e83a5b091d5cb44ac (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
# Maintainer: Dasith Gunawardhana <dasith.gunawardhana@gmail.com>

_pkgname=copac
pkgname=${_pkgname}-git
pkgver=r7.58838f2
pkgrel=1
pkgdesc="An AUR helper"
arch=('x86_64')
url="https://gitlab.com/dasith.gunawardhana/copac.git"
license=('GPL3')
depends=('pacman' 'libgit2' 'curl')
makedepends=('git' 'nlohmann-json')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=('git+https://gitlab.com/dasith.gunawardhana/copac.git')
md5sums=('SKIP')

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

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

package() {
	cd "$srcdir/${_pkgname}"
	make PREFIX=/usr DESTDIR="$pkgdir" install
	install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}