mirror of
https://github.com/archlinux/aur.git
synced 2026-02-09 06:38:44 +01:00
initial commit
This commit is contained in:
commit
971dbc165a
5 changed files with 90 additions and 0 deletions
15
.SRCINFO
Normal file
15
.SRCINFO
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
pkgbase = gnome-shell-extension-papirus-folders-colorizer
|
||||
pkgdesc = A GNOME shell extension that automatically syncs your Papirus folder icons with your GNOME Accent Color.
|
||||
pkgver = 3
|
||||
pkgrel = 1
|
||||
url = https://github.com/NiffirgkcaJ/papirus-folders-colorizer
|
||||
arch = any
|
||||
license = GPL-3.0-or-later
|
||||
makedepends = git
|
||||
makedepends = jq
|
||||
depends = gnome-shell
|
||||
depends = papirus-folders
|
||||
source = git+https://github.com/NiffirgkcaJ/papirus-folders-colorizer.git#tag=v3
|
||||
sha256sums = 1019e88e7743db783eddb08455c2f2d96bc16cce421080ae5dc5fdb7c8bcd9e3
|
||||
|
||||
pkgname = gnome-shell-extension-papirus-folders-colorizer
|
||||
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Ignore everything
|
||||
/*
|
||||
|
||||
# But not these files...
|
||||
!.gitignore
|
||||
!PKGBUILD
|
||||
!.SRCINFO
|
||||
!.nvchecker.toml
|
||||
!LICENSE
|
||||
4
.nvchecker.toml
Normal file
4
.nvchecker.toml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[gnome-shell-extension-papirus-folders-colorizer]
|
||||
source = "git"
|
||||
git = "https://github.com/NiffirgkcaJ/papirus-folders-colorizer.git"
|
||||
prefix = "v"
|
||||
12
LICENSE
Normal file
12
LICENSE
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Copyright Arch Linux Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for
|
||||
any purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
|
||||
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
||||
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
|
||||
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
|
||||
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
||||
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
||||
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
50
PKGBUILD
Normal file
50
PKGBUILD
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
|
||||
pkgname=gnome-shell-extension-papirus-folders-colorizer
|
||||
pkgver=3
|
||||
pkgrel=1
|
||||
pkgdesc="A GNOME shell extension that automatically syncs your Papirus folder icons with your GNOME Accent Color."
|
||||
arch=('any')
|
||||
url="https://github.com/NiffirgkcaJ/papirus-folders-colorizer"
|
||||
license=('GPL-3.0-or-later')
|
||||
depends=(
|
||||
'gnome-shell'
|
||||
'papirus-folders'
|
||||
)
|
||||
makedepends=(
|
||||
'git'
|
||||
'jq'
|
||||
)
|
||||
source=("git+https://github.com/NiffirgkcaJ/papirus-folders-colorizer.git#tag=v$pkgver")
|
||||
sha256sums=('1019e88e7743db783eddb08455c2f2d96bc16cce421080ae5dc5fdb7c8bcd9e3')
|
||||
|
||||
prepare() {
|
||||
cd papirus-folders-colorizer
|
||||
|
||||
# GNOME blue > Papirus adwaita
|
||||
sed -i "s/blue: 'blue'/blue: 'adwaita'/g" \
|
||||
gnome-extensions/extension/shared/constants/constantTheme.js
|
||||
|
||||
# GNOME teal > Papirus darkcyan
|
||||
sed -i "s/teal: 'teal'/teal: 'darkcyan'/g" \
|
||||
gnome-extensions/extension/shared/constants/constantTheme.js
|
||||
}
|
||||
|
||||
build() {
|
||||
cd papirus-folders-colorizer
|
||||
gnome-extensions pack gnome-extensions/extension \
|
||||
--extra-source=shared/ \
|
||||
--force
|
||||
}
|
||||
|
||||
package() {
|
||||
cd papirus-folders-colorizer
|
||||
_uuid=$(jq -r .uuid gnome-extensions/extension/metadata.json)
|
||||
|
||||
install -d "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}"
|
||||
bsdtar -xvf "${_uuid}.shell-extension.zip" -C \
|
||||
"$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/" --no-same-owner
|
||||
|
||||
install -Dvm644 gnome-extensions/extension/schemas/*.gschema.xml -t \
|
||||
"$pkgdir/usr/share/glib-2.0/schemas/"
|
||||
rm -rfv "$pkgdir/usr/share/gnome-shell/extensions/${_uuid}/schemas"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue