diff options
author | Ferdinand Bachmann | 2021-11-12 03:24:10 +0100 |
---|---|---|
committer | Ferdinand Bachmann | 2021-11-12 03:24:10 +0100 |
commit | 6422b889b33fade557f64478e1c25d8f4a8cf9cd (patch) | |
tree | cf017ae0d8c551313060b7d1027dc3f6d45aec7b | |
download | aur-6422b889b33fade557f64478e1c25d8f4a8cf9cd.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..24dad58b62ce --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = wl-mirror-git + pkgdesc = a simple Wayland output mirror client (git version) + pkgver = 0.1.1.r0.g58ce184 + pkgrel = 1 + url = https://github.com/Ferdi265/wl-mirror + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = cmake + depends = libglvnd + depends = wayland + source = git+https://github.com/Ferdi265/wl-mirror + source = git+https://gitlab.freedesktop.org/wayland/wayland-protocols + source = git+https://gitlab.freedesktop.org/wlroots/wlr-protocols + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + +pkgname = wl-mirror-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b73fe54de5ef --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Ferdinand B <theferdi265@gmail.com> + +pkgname=wl-mirror-git +pkgver=0.1.1.r0.g58ce184 +pkgrel=1 +pkgdesc="a simple Wayland output mirror client (git version)" +url="https://github.com/Ferdi265/wl-mirror" +arch=('i686' 'x86_64') +license=('GPL3') +depends=('libglvnd' 'wayland') +makedepends=('git' 'cmake') +source=( + "git+https://github.com/Ferdi265/wl-mirror" + "git+https://gitlab.freedesktop.org/wayland/wayland-protocols" + "git+https://gitlab.freedesktop.org/wlroots/wlr-protocols" +) +sha256sums=('SKIP' 'SKIP' 'SKIP') + +pkgver() { + cd "$srcdir/wl-mirror" + git describe --long --tags | sed -r 's/^v//g;s/([^-]*-g)/r\1/;s/-/./g' +} + +prepare() { + cd "$srcdir/wl-mirror" + git submodule init + git config submodule.proto/wayland-protocols.url "$srcdir/wayland-protocols" + git config submodule.proto/wlr-protocols.url "$srcdir/wlr-protocols" + git submodule update +} + +build() { + cmake -B build -S "$srcdir/wl-mirror" -DCMAKE_INSTALL_PREFIX=/usr + make -C build +} + +package() { + make -C build DESTDIR="$pkgdir" install +} |