diff options
author | khing | 2023-10-23 21:48:04 +0800 |
---|---|---|
committer | khing | 2023-10-23 21:48:04 +0800 |
commit | 79438c3bf23333d8399e7d76f3a7e2420b700715 (patch) | |
tree | 0f1eefa51a9cb192380ffad665078386e5a3faa3 | |
download | aur-79438c3bf23333d8399e7d76f3a7e2420b700715.tar.gz |
Initial AUR Repo for hdisplays
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3967ba192b29 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = hdisplays + pkgdesc = GUI display configurator for wlroots compositors + pkgver = r72.515c2b0 + pkgrel = 1 + url = https://github.com/kRHYME7/Hypr-Display + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + license = GPL3 + makedepends = git + makedepends = meson + makedepends = libepoxy + makedepends = wayland + makedepends = wayland-protocols + makedepends = hyprland + depends = gtk3 + provides = hdisplays + conflicts = hdisplays + source = hdisplays::git+https://github.com/kRHYME7/Hypr-Display + sha256sums = SKIP + +pkgname = hdisplays diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1fb34b95e470 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Khing <alampayk@gmail.com> +# Contributor: Soon +pkgname=hdisplays +_pkgname="hdisplays" +pkgver=r72.515c2b0 +pkgrel=1 +pkgdesc='GUI display configurator for wlroots compositors' +url='https://github.com/kRHYME7/Hypr-Display' +license=('GPL3') +provides=("$_pkgname") +conflicts=("$_pkgname") +arch=('i686' 'x86_64' 'armv6h' 'armv7h') +depends=('gtk3') +makedepends=('git' 'meson' 'libepoxy' 'wayland' 'wayland-protocols' 'hyprland') +source=("${pkgname%-git}::git+$url") +sha256sums=('SKIP') + +pkgver() { + cd "$_pkgname" + ( 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)" + ) +} + +build() { + cd "$_pkgname" + arch-meson "$srcdir/build" + ninja -C "$srcdir/build" +} + +package() { + DESTDIR="$pkgdir" ninja -C "$srcdir/build" install + install -D -m 644 "$srcdir/hdisplays/resources/hdisplays.svg" "$pkgdir"/usr/share/pixmaps/hdisplays.svg + install -d -m 755 "$pkgdir"/usr/share/licenses/"$_pkgname" + install -D -m 644 "$_pkgname"/LICENSES/* "$pkgdir"/usr/share/licenses/"$_pkgname"/ +} + |