blob: 4ec0860a2ab9b70ea2c1766a5498cbdc29db13d8 (
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
|
# Maintainer: Matthias Ellmer <matthias at x four eight dot org but eight is really nine>
pkgname=groopsgui-git
pkgver=r24.55a6c54
pkgrel=1
pkgdesc="A graphical user interface to create and edit groops configuration files."
arch=('x86_64')
url="https://github.com/groops-devs/groops"
license=('GPL3')
depends=('qt5-base')
makedepends=('git' 'cmake' 'gcc')
optdepends=()
install=post.install
source=('groopsgui::git+https://github.com/groops-devs/groops.git')
md5sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
qmake -o "${pkgname}-${pkgver}/build/Makefile" \
"${pkgname%-git}/gui/groopsGui.pro" \
GROOPSDIR="${pkgname%-git}" \
DESTDIR=""
make -C ${pkgname}-${pkgver}/build
}
package() {
# binary
install -D -m755 "${pkgname}-${pkgver}/build/groopsGui" -t "${pkgdir}/usr/bin"
# license
install -D -m644 "${pkgname%-git}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
# schema
install -D -m644 "${pkgname%-git}/groops.xsd" -t "${pkgdir}/usr/share/${pkgname}"
# documentation
install -d -m755 "${pkgdir}/usr/share/doc/${pkgname}"
cp -R "${pkgname%-git}/docs/"* "${pkgdir}/usr/share/doc/${pkgname}"
chmod -R "u=rwX,g=rX,o=rX" "${pkgdir}/usr/share/doc/${pkgname}"
}
|