archrelease: copy trunk to extra-x86_64
[arch-packages.git] / spice / trunk / PKGBUILD
blob2af9a9c14dd97be1f4fc1626fa199034311c8bdd
1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Maintainer: Patryk Kowalczyk < patryk at kowalczyk dot ws>
4 pkgname=spice
5 pkgver=0.15.0
6 pkgrel=1
7 pkgdesc="SPICE server"
8 arch=('x86_64')
9 url="https://www.spice-space.org"
10 license=('LGPL2.1')
11 depends=('pixman' 'opus' 'libjpeg-turbo' 'glib2' 'libsasl' 'lz4')
12 makedepends=('meson' 'spice-protocol' 'libcacard')
13 checkdepends=('gdk-pixbuf2' 'glib-networking')
14 provides=('libspice-server.so')
15 source=("https://www.spice-space.org/download/releases/spice-server/$pkgname-$pkgver.tar.bz2"{,.sig})
16 sha256sums=('b320cf8f4bd2852750acb703c15b72856027e5a8554f8217dfbb3cc09deba0f5'
17             'SKIP')
18 validpgpkeys=('206D3B352F566F3B0E6572E997D9123DE37A484F') # Victor Toso <victortoso@redhat.com>
20 prepare() {
21   sed -i "s/if not version_info.contains('git')/if version_info.length() >= 4/" $pkgname-$pkgver/server/meson.build
22   # Consider removing the following sed once this issue is resolved:
23   # https://gitlab.freedesktop.org/spice/spice/-/issues/62
24   sed -i "/doxygen.sh/d" $pkgname-$pkgver/meson.build
27 build() {
28   arch-meson "$pkgname-$pkgver" build -D gstreamer=no
29   ninja -C build
32 check() {
33   meson test -C build --print-errorlogs
36 package() {
37   DESTDIR="$pkgdir" meson install -C build