blob: 2929dcdc1710fed4d151a90b8129c4a8125f4109 (
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
|
# Maintainer: MV <notfood.dev@gmail.com>
# Contributor: Manuel Hüsers <aur@huesers.de>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Franco Iacomella <yaco@gnu.org>
pkgbase='drawpile'
pkgname=("${pkgbase}"{,'-client','-server','-tools'})
pkgver=2.2.1
pkgrel=1
pkgdesc='Collaborative drawing program specially made for use with pen tablets'
arch=('i686' 'x86_64')
url='https://drawpile.net/'
license=('GPL3')
makedepends=('cmake' 'extra-cmake-modules' 'karchive5' 'qt5-multimedia' 'qt5-svg' 'qt5-tools' 'qt5-x11extras' 'cargo')
source=(
"https://github.com/drawpile/Drawpile/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=(
'7b158e26f346da767e29abf3a347344a11a05ef6308236100b437518aaa2a07f')
_cmakeargs+=(
'--preset linux-release-qt5-all-make'
'-DCMAKE_EXPORT_COMPILE_COMMANDS=OFF'
'-DCMAKE_INSTALL_PREFIX=/usr'
'-DSOURCE_ASSETS=OFF')
build() {
cd "Drawpile-${pkgver}"
cmake "${_cmakeargs[@]}" -B build
cmake --build build
}
package_drawpile() {
pkgdesc+=' (meta package)'
arch=('any')
depends=("${pkgbase}-client" "${pkgbase}-server" "${pkgbase}-tools")
cd "Drawpile-${pkgver}"
DESTDIR="${srcdir}/pkg" cmake --install build
}
package_drawpile-client() {
pkgdesc+=' (client)'
depends=('desktop-file-utils' 'karchive5' 'qt5-multimedia' 'qt5-x11extras')
optdepends=('qt5-color-widgets: alternative color wheel'
'qtkeychain-qt5: Password storage')
install="${pkgbase}.install"
cd "Drawpile-${pkgver}"
mkdir -p "${pkgdir}"/usr/{bin,share}
cp -r "${srcdir}"/pkg/usr/share/* "${pkgdir}"/usr/share
cp "${srcdir}"/pkg/usr/bin/drawpile "${pkgdir}"/usr/bin
}
package_drawpile-server() {
pkgdesc+=' (server)'
depends=('karchive5')
optdepends=('libmicrohttpd: web-admin feature'
'libsodium: ext-auth support'
'libsystemd: systemd and logging support')
cd "Drawpile-${pkgver}"
mkdir -p "${pkgdir}"/usr/bin
cp "${srcdir}"/pkg/usr/bin/drawpile-srv "${pkgdir}"/usr/bin
}
package_drawpile-tools() {
pkgdesc+=' (tools)'
cd "Drawpile-${pkgver}"
mkdir -p "${pkgdir}"/usr/bin
cp "${srcdir}"/pkg/usr/bin/{dprectool,drawpile-cmd,drawpile-timelapse} "${pkgdir}"/usr/bin
}
|