From 406605593568adbfb6a3c22a18267ac74239b308 Mon Sep 17 00:00:00 2001 From: joborun Date: Fri, 21 Jun 2024 14:04:28 +0300 Subject: [PATCH] add wlsunset --- wlsunset/PKGBUILD | 51 ++++++++++++++++++++++++++++++++++++++++++ wlsunset/PKGBUILD-arch | 27 ++++++++++++++++++++++ wlsunset/PKGBUILD-aur | 34 ++++++++++++++++++++++++++++ wlsunset/clean | 1 + wlsunset/deps | 8 +++++++ wlsunset/time | 6 +++++ 6 files changed, 127 insertions(+) create mode 100644 wlsunset/PKGBUILD create mode 100644 wlsunset/PKGBUILD-arch create mode 100644 wlsunset/PKGBUILD-aur create mode 100644 wlsunset/clean create mode 100644 wlsunset/deps create mode 100644 wlsunset/time diff --git a/wlsunset/PKGBUILD b/wlsunset/PKGBUILD new file mode 100644 index 0000000..adbfeb7 --- /dev/null +++ b/wlsunset/PKGBUILD @@ -0,0 +1,51 @@ +#!/usr/bin/bash +# JOBoRun : Jwm OpenBox Obarun RUNit +# Maintainer : Joe Bo Run +# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname" +# Website : https://pozol.eu +#-----------------------------------------| DESCRIPTION |--------------------------------------- + +pkgname=wlsunset +pkgver=0.4.1.pr +_pkgver=0.4.0.r0.634c8eb +pkgrel=02 +pkgdesc='Day/night gamma adjustments for Wayland compositors' +url="https://git.sr.ht/~kennylevinsen/wlsunset" +makedepends=('git' 'meson' 'ninja' 'scdoc' 'wayland' 'wayland-protocols') +provides=('wlsunset') +conflicts=('wlsunset-git') +source=("$pkgname::git+$url") + +_pkgver() { + cd "$pkgname" + +# Git, tags available + printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" + +# Git, no tags available +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$pkgname" + arch-meson build + ninja -C build +} + +package() { + cd "$pkgname" + depends=('wayland' 'wayland-protocols') + DESTDIR="$pkgdir" ninja -C build install + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" +} + +#---- arch license gpg-key & sha256sums ---- + +arch=(x86_64) + +license=('MIT') + +sha256sums=('SKIP') + +## 9cf8f0562bebd5e5d6dcecc75dc6cd9dacfd29c28e473ff83c6d84884635e862 wlsunset-0.4.1.pr-02-x86_64.pkg.tar.lz + diff --git a/wlsunset/PKGBUILD-arch b/wlsunset/PKGBUILD-arch new file mode 100644 index 0000000..f8a9230 --- /dev/null +++ b/wlsunset/PKGBUILD-arch @@ -0,0 +1,27 @@ +# Maintainer: Brett Cornwall +# Contributor: Thorben Günther + +pkgname=wlsunset +pkgver=0.4.0 +pkgrel=1 +pkgdesc='Day/night gamma adjustments for Wayland compositors' +arch=('x86_64') +url='https://sr.ht/~kennylevinsen/wlsunset' +license=('MIT') +depends=('libwayland-client.so') +makedepends=('meson' 'scdoc' 'wayland-protocols') +source=("$pkgname-$pkgver.tar.gz::https://git.sr.ht/~kennylevinsen/wlsunset/archive/${pkgver}.tar.gz") +sha256sums=('a86ffb1793fe622802ec25795b69df864715986ecc175f7734e739c9e264ed72') + +build() { + cd "$pkgname-$pkgver" + arch-meson build + ninja -C build +} + +package() { + cd "$pkgname-$pkgver" + DESTDIR="$pkgdir/" ninja -C build install + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" +} + diff --git a/wlsunset/PKGBUILD-aur b/wlsunset/PKGBUILD-aur new file mode 100644 index 0000000..919351b --- /dev/null +++ b/wlsunset/PKGBUILD-aur @@ -0,0 +1,34 @@ +pkgname=wlsunset-git +pkgver=0.1.0.r0.0569fb4 +pkgrel=1 +pkgdesc="Day/night gamma adjustments for Wayland" +arch=('x86_64') +url="https://git.sr.ht/~kennylevinsen/wlsunset" +license=('MIT') +depends=('wayland' 'wayland-protocols') +makedepends=('git' 'meson' 'ninja' 'scdoc') +provides=('wlsunset') +conflicts=('wlsunset') +source=("$pkgname::git+$url") +sha256sums=('SKIP') + +pkgver() { + cd "$pkgname" + +# Git, tags available + printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" + +# Git, no tags available +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$pkgname" + arch-meson build + ninja -C build +} + +package() { + cd "$pkgname" + DESTDIR="$pkgdir" ninja -C build install +} diff --git a/wlsunset/clean b/wlsunset/clean new file mode 100644 index 0000000..5977798 --- /dev/null +++ b/wlsunset/clean @@ -0,0 +1 @@ +rm -rf {src,pkg,wlsunset} diff --git a/wlsunset/deps b/wlsunset/deps new file mode 100644 index 0000000..35a983f --- /dev/null +++ b/wlsunset/deps @@ -0,0 +1,8 @@ +git +meson +ninja +scdoc +wayland + + +wayland-protocols diff --git a/wlsunset/time b/wlsunset/time new file mode 100644 index 0000000..bb276ea --- /dev/null +++ b/wlsunset/time @@ -0,0 +1,6 @@ + + +real 0m4.610s +user 0m3.001s +sys 0m0.691s +