blob: 31ad294b04b8abfb9460a206298d8de8211124fe (
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
|
# Maintainer: Adrián Pérez de Castro <aperez@igalia.com>
pkgdesc='Wayland bridge/frameserver for Arcan'
pkgname='arcan-waybridge-git'
pkgver=0.5.4.6.r10.gdb2f991e
pkgrel=1
license=('GPL2' 'LGPL' 'custom:BSD')
arch=('x86_64')
depends=('wayland' 'arcan')
makedepends=('cmake' 'wayland-protocols' 'git')
provides=('arcan-waybridge')
conflicts=('arcan-waybridge')
url='https://arcan-fe.com/'
source=("${pkgname}::git+https://github.com/letoram/arcan.git")
sha512sums=('SKIP')
pkgver () {
cd "${pkgname}"
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build () {
rm -rf "${pkgname}/build"
mkdir "${pkgname}/build"
cd "${pkgname}/build"
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
../src/tools/waybridge
make
}
package () {
cd "${pkgname}/build"
DESTDIR="${pkgdir}" make install
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../COPYING
}
|