diff options
author | Cedric Girard | 2019-06-07 14:45:45 +0200 |
---|---|---|
committer | Cedric Girard | 2019-06-07 14:45:45 +0200 |
commit | 110b86745a5a69d6130d20ef0d561fa61614b9f6 (patch) | |
tree | 6fa3b155e50fd9ba47259eacc53ec47f63cffd89 | |
download | aur-110b86745a5a69d6130d20ef0d561fa61614b9f6.tar.gz |
Initial upload: wlay-git r20.4e30475-1
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..faaf35bc8cc7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = wlay-git + pkgdesc = Graphical output management for Wayland + pkgver = r20.4e30475 + pkgrel = 1 + url = https://github.com/atx/wlay + arch = i686 + arch = x86_64 + license = MIT + makedepends = git + makedepends = cmake + makedepends = extra-cmake-modules + makedepends = wayland + makedepends = glfw-wayland + makedepends = glew-wayland + depends = wayland + depends = glfw-wayland + depends = glew-wayland + provides = wlay + conflicts = wlay + source = wlay::git+https://github.com/atx/wlay.git + sha256sums = SKIP + +pkgname = wlay-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a8a44313629c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Cedric Girard <girard.cedric@gmail.com> + +pkgname=wlay-git +pkgver=r20.4e30475 +pkgrel=1 +pkgdesc="Graphical output management for Wayland" + +arch=('i686' 'x86_64') +url="https://github.com/atx/wlay" +license=('MIT') +makedepends=('git' 'cmake' 'extra-cmake-modules' 'wayland' 'glfw-wayland' 'glew-wayland') +depends=('wayland' 'glfw-wayland' 'glew-wayland') +provides=('wlay') +conflicts=('wlay') +source=('wlay::git+https://github.com/atx/wlay.git') +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir"/wlay + ( 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)" + ) +} + +prepare(){ + cd "$srcdir"/wlay + git submodule init + git submodule update +} + +build() { + cd "$srcdir"/wlay + cmake . \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd "$srcdir"/wlay + make DESTDIR="$pkgdir/" install + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set ts=2 sw=2 et: |