blob: 3d49e06047c4b8582ee3c75ec22ffde2ca1bae90 (
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
|
# Maintainer: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>
pkgname=wayland-protocols-git
pkgver=1.7.119.c438cbe
pkgrel=1
pkgdesc='Wayland protocols that add functionalities not available in the core protocol'
arch=('any')
url='http://cgit.freedesktop.org/wayland/wayland-protocols'
license=('MIT')
makedepends=('git' 'wayland')
conflicts=('wayland-protocols')
provides=('wayland-protocols')
source=('git://anongit.freedesktop.org/wayland/wayland-protocols')
sha1sums=('SKIP')
pkgver() {
cd wayland-protocols
for i in major_version minor_version; do
local _$i=$(grep -m 1 $i configure.ac | sed 's/m4//' | grep -o "[[:digit:]]*")
done
echo "$_major_version.$_minor_version.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p wayland-protocols/build
}
build() {
cd wayland-protocols/build
../autogen.sh --prefix=/usr
make
}
check() {
cd wayland-protocols/build
rm -rf stable unstable test-suite.log
make test-suite.log
}
package() {
cd wayland-protocols/build
make DESTDIR="$pkgdir" install
install -Dm644 ../COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/COPYING
}
|