summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c833dd2d77b8c72d84ce289f0bca0085cca60da (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
44
45
46
# Maintainer: grufo <madmurphy333 AT gmail DOT com>

_mainapp='gnunet'
_extname='groupchat'
_appname="${_mainapp}-${_extname}"
pkgname="${_appname}-git"
pkgver='r71.229b117'
pkgrel=1
pkgdesc="A simple client-server chat system, using GNUnet and CADET"
arch=('any')
url="http://${_mainapp}.org"
license=('GPL')
provides=("${_appname}")
conflicts=("${_appname}")
depends=("${_mainapp}")
makedepends=('nim' 'nimble' 'git')
install="${_appname}.install"

source=("git+https://git.${_mainapp}.org/${_extname}.git")

md5sums=('SKIP')

pkgver() {

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

}

build() {

	cd "${srcdir}/${_extname}"
	make

}

package() {

	cd "${srcdir}/${_extname}"
	install -dm755 "${pkgdir}/usr/bin"
	install -dm644 "${pkgdir}/usr/share/${_appname}"
	install -Dm755 "${srcdir}/${_extname}/${_extname}" "${pkgdir}/usr/bin/"
	install -Dm644 "${srcdir}/${_extname}/README.rst" "${pkgdir}/usr/share/${_appname}"

}