diff options
author | Christian Schendel | 2023-06-20 11:40:10 +0200 |
---|---|---|
committer | Christian Schendel | 2023-06-20 11:40:10 +0200 |
commit | 0a108672e01c6670bfb69930009b9ca8a4515831 (patch) | |
tree | 21c6bcfbd8eace6de2c121962be6a2eb25113d5b | |
download | aur-0a108672e01c6670bfb69930009b9ca8a4515831.tar.gz |
Initial commit
new file: .SRCINFO
new file: .gitignore
new file: PKGBUILD
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 48 |
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5e1038fbd5c5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = gnome-shell-extension-peek-top-bar-on-fullscreen-git + pkgdesc = Gnome Extension that triggers top panel to show up on full screen apps when cursor hovers the top edge of the screen + pkgver = r20.589c329 + pkgrel = 1 + url = https://github.com/marcinjahn/gnome-peek-top-bar-on-fullscreen-extension + arch = any + license = unknown + makedepends = git + makedepends = gobject-introspection + makedepends = npm + depends = gnome-shell + provides = gnome-shell-extension-peek-top-bar-on-fullscreen + conflicts = gnome-shell-extension-peek-top-bar-on-fullscreen + source = gnome-shell-extension-peek-top-bar-on-fullscreen::git+https://github.com/marcinjahn/gnome-peek-top-bar-on-fullscreen-extension.git + md5sums = SKIP + +pkgname = gnome-shell-extension-peek-top-bar-on-fullscreen-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..833085309a2e --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tar.gz +*.pkg.tar.zst +*/* + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..245a4789ec7c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Christian Schendel (doppelhelix@gmail.com) + +pkgname=gnome-shell-extension-peek-top-bar-on-fullscreen-git +pkgver=r20.589c329 +pkgrel=1 +pkgdesc="Gnome Extension that triggers top panel to show up on full screen apps when cursor hovers the top edge of the screen" +arch=('any') +url="https://github.com/marcinjahn/gnome-peek-top-bar-on-fullscreen-extension" +license=('unknown') +depends=('gnome-shell') +makedepends=('git' + 'gobject-introspection' + 'npm') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("${pkgname%-git}::git+${url}.git") +md5sums=('SKIP') + +pkgver() { + cd "${srcdir}/${pkgname%-git}" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd "${srcdir}/${pkgname%-git}" + npm install +} + +build() { + cd "${srcdir}/${pkgname%-git}" + npm run build +} + +package() { + cd "${srcdir}/${pkgname%-git}/dist" + local uuid=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json) + local schema=org.gnome.shell.extensions.quicksettings-audio-devices-renamer.gschema.xml + local destdir="${pkgdir}/usr/share/gnome-shell/extensions/${uuid}" + install -dm755 "${destdir}" + find . -regextype posix-egrep -regex ".*\.(js|json|compiled)$" -exec\ + install -Dm 644 {} ${destdir}/{} \; + install -Dm644 "${srcdir}/${pkgname%-git}/dist/schemas/${schema}" \ + "${pkgdir}/usr/share/glib-2.0/schemas/${schema}" +} + |