archrelease: copy trunk to community-any
[ArchLinux/community.git] / wlc / repos / community-x86_64 / PKGBUILD
blobc7eca96a1ff2b1afd58620bb24ca7daa8ac88c4a
1 pkgname=wlc
2 pkgver=0.0.11
3 pkgrel=2
4 pkgdesc="Wayland Compositor Library"
5 url="https://github.com/Cloudef/wlc"
6 arch=("x86_64")
7 license=("MIT")
8 depends=(
9         "libdrm" "pixman" "xcb-util-image" "xcb-util-wm"
10         "wayland" "wayland-protocols" "libxkbcommon" "libinput" "libgl"
12 makedepends=("cmake")
13 source=(
14         "https://github.com/Cloudef/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2"
15         "https://github.com/Cloudef/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2.asc"
16         wlc-missing-header.patch
18 sha256sums=('c2061f5d6c627688ea8b822ac5f4d3ba4d407b3f8d79267677ce4011b6390d22'
19             'SKIP'
20             '605a7d7b5d5d3b5c771ee9e262836b6073be89aa5737328b66ebe835bec828a6')
21 validpgpkeys=(
22         "C2AA3C3A6F9B1F932014879EF769BB961AF6D26A"
23         "9DDA3B9FA5D58DD5392C78E652CB6609B22DA89A"  # Drew DeVault <sway@cmpwn.com>
26 prepare() {
27   cd $pkgname-$pkgver
28   patch -p1 -i ../wlc-missing-header.patch
31 build() {
32         mkdir -p build
33         cd build
34         CFLAGS+=' -fcommon'
35         cmake "$srcdir/$pkgname-$pkgver" \
36                 -DCMAKE_BUILD_TYPE=Upstream \
37                 -DCMAKE_INSTALL_LIBDIR=/usr/lib \
38                 -DCMAKE_INSTALL_PREFIX=/usr
39         make
42 check() {
43         cd build
44         make test
47 package() {
48         cd build
49         make DESTDIR="$pkgdir" install
50         install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"