blob: 04f15189bb70031671b8aa0b463f0b841c1f032b (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Maintainer: dreieck
_pkgname=confclerk
pkgname="${_pkgname}-git"
_pkgver=latest
epoch=1
pkgver=0.7.1+1+r646.20210819.g4e8061f
pkgrel=1
pkgdesc='Qt5 application to make conference schedules offline. Able to import schedules in XML format created by the PentaBarf (or frab) used by FOSDEM, DebConf, Grazer Linuxtage, CCC congresses, FrOSCon, and many others.'
arch=('i686' 'x86_64')
url="http://www.toastfreeware.priv.at/confclerk"
license=('GPL2')
depends=(
'gcc-libs'
'glibc'
'qt5-base'
)
optdepends=()
makedepends=(
'coreutils' # for `cut`
'git'
)
provides=(
"${_pkgname}=${pkgver}"
)
conflicts=("${_pkgname}")
options=()
source=(
"${_pkgname}::git+http://git.toastfreeware.priv.at/toast/confclerk.git"
"${_pkgname}-debian::git+http://git.toastfreeware.priv.at/debian/confclerk.git" # Needed for the manpage.
#"${_pkgname}.1.gz::http://manpages.ubuntu.com/manpages.gz/zesty/man1/confclerk.1.gz"
)
sha256sums=(
'SKIP'
'SKIP'
#'SKIP'
)
prepare() {
cd "${srcdir}/${_pkgname}"
git log > git.log
}
pkgver() {
cd "${srcdir}/${_pkgname}"
_descr="$(git describe --tags)"
_ver="$(printf '%s' "${_descr}" | cut -d '-' -f 1,2 | tr '-' '+')"
_rev="r$(git rev-list --count HEAD)"
_hash="$(printf '%s' "${_descr}" | cut -d '-' -f 3)"
_date="$(git log -n 1 --format=tformat:%ci | cut -d ' ' -f 1 | tr -d '-')"
printf '%s\n' "${_ver}+${_rev}.${_date}.${_hash}"
}
build() {
cd "${srcdir}/${_pkgname}"
qmake
make
gzip -c -9 "${srcdir}/${_pkgname}-debian/data/confclerk.1" > "${srcdir}/${_pkgname}.1.gz"
}
package() {
cd "${srcdir}/${_pkgname}"
### I found no way to specify a custom installation directory. So we install manually ...
install -v -D -m755 src/bin/confclerk "${pkgdir}/usr/bin/${_pkgname}"
install -v -D -m644 data/confclerk.desktop "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
install -v -D -m644 data/confclerk.svg "${pkgdir}/usr/share/pixmaps/${_pkgname}.svg"
install -v -D -m644 "${srcdir}/${_pkgname}.1.gz" "${pkgdir}/usr/share/man/man1/${_pkgname}.1.gz"
install -v -d -m755 "${pkgdir}/usr/share/doc/${_pkgname}/${_pkgname}" # Yes, we have an _additional_ ${_pkgname}-subdirectory, since we also have historic documentation from the time when this software was named fosdem-schedule.
cp -rv docs/* "${pkgdir}/usr/share/doc/${_pkgname}/"
install -v -D -m644 -t "${pkgdir}/usr/share/doc/${_pkgname}/${_pkgname}" AUTHORS BUGS COPYING INSTALL NEWS README git.log
}
|