diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -2,12 +2,13 @@ _realname='gulkan' pkgname="$_realname-git" -pkgver=0.16.0.442.54e80d2 +pkgver=0.16.0.r445.55721c9 pkgrel=1 pkgdesc='A GLib library for Vulkan abstraction.' arch=('i686' 'x86_64') url='https://gitlab.freedesktop.org/xrdesktop/gulkan' -depends=('gdk-pixbuf2' 'vulkan-icd-loader' 'graphene' 'cairo' 'shaderc' 'json-glib' 'libxkbcommon' 'wayland' 'xcb-util-keysyms' 'libdrm' 'wayland-protocols' 'glfw') +depends=('glibc' 'glib2' 'gdk-pixbuf2' 'vulkan-icd-loader' 'graphene' 'cairo' 'shaderc' 'json-glib' 'libxkbcommon' 'wayland' 'libxcb' 'xcb-util-keysyms') +# Dependencies only used for examples: 'libdrm' 'wayland-protocols' 'glfw') provides=("$_realname="$pkgver) conflicts=("$_realname") makedepends=('meson' 'git' 'vulkan-headers' 'gtk-doc') @@ -22,15 +23,13 @@ ver() { } pkgver() { - cd $_realname - hash=$(git log --pretty=format:'%h' -n 1) - revision=$(git rev-list --count HEAD) - echo $(ver).$revision.$hash + cd "$_realname" + printf "$(ver).r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" } build() { rm -rf build - arch-meson $_realname build --libdir=lib --buildtype release -Dapi_doc=true + arch-meson "$_realname" build --libdir=lib --buildtype release -Dapi_doc=true ninja -C build } |