diff options
author | Hsiu-Ming Chang | 2022-03-30 11:19:05 +0800 |
---|---|---|
committer | Hsiu-Ming Chang | 2022-03-30 11:21:06 +0800 |
commit | 4f85a4407a8db206047e71d4fa715301ec4edf3d (patch) | |
tree | 5835441843f56d64b9439027b6de9edddb67fa8e | |
download | aur-4f85a4407a8db206047e71d4fa715301ec4edf3d.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | color-scheme-simulator-git.install | 7 |
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b0aaea6a1a69 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = color-scheme-simulator-git + pkgdesc = A quick portal implementation + GUI to test the upcoming dark style preference + pkgver = r10.2c3452f + pkgrel = 1 + url = https://gitlab.gnome.org/exalm/color-scheme-simulator + install = color-scheme-simulator-git.install + arch = x86_64 + license = GPL3 + makedepends = meson + makedepends = git + makedepends = vala + makedepends = libadwaita + depends = xdg-desktop-portal + optdepends = libadwaita: for GUI + source = git+https://gitlab.gnome.org/exalm/color-scheme-simulator.git + md5sums = SKIP + +pkgname = color-scheme-simulator-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..10fb62f748f5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Hsiu-Ming Chang <cges30901 at gmail dot com> + +pkgname=color-scheme-simulator-git +pkgver=r10.2c3452f +pkgrel=1 +pkgdesc="A quick portal implementation + GUI to test the upcoming dark style preference" +arch=(x86_64) +url="https://gitlab.gnome.org/exalm/color-scheme-simulator" +license=('GPL3') +depends=('xdg-desktop-portal') +makedepends=('meson' 'git' 'vala' 'libadwaita') +optdepends=("libadwaita: for GUI") +install=$pkgname.install +source=("git+https://gitlab.gnome.org/exalm/color-scheme-simulator.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/${pkgname%-git}" +} + +build() { + cd "$srcdir/${pkgname%-git}" + arch-meson build + meson compile -C build +} + +package() { + cd "$srcdir/${pkgname%-git}" + meson install -C build --destdir "$pkgdir" +} diff --git a/color-scheme-simulator-git.install b/color-scheme-simulator-git.install new file mode 100644 index 000000000000..067585f7b852 --- /dev/null +++ b/color-scheme-simulator-git.install @@ -0,0 +1,7 @@ +post_install() { + echo Please run \"systemctl --user restart xdg-desktop-portal\" after install +} + +post_remove() { + echo Please run \"systemctl --user restart xdg-desktop-portal\" and \"killall xdg-desktop-portal-impatience\" after removal +} |