summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59cb33dce8938d2908280338ea3729bb8518d38e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Zhang Shiwei <ylxdzsw@gmail.com>

pkgname=gnome-shell-extension-just-perfection-desktop-git
pkgdesc="Just Perfection GNOME Shell Desktop"
pkgver=r576.f87655c
pkgrel=1
arch=(any)
conflicts=('gnome-shell-extension-just-perfection-desktop')
provides=('gnome-shell-extension-just-perfection-desktop')
url='https://gitlab.gnome.org/jrahmatzadeh/just-perfection'
license=(GPL3 'CC0 1.0')
depends=('gnome-shell')
makedepends=('git' 'unzip')
source=('git+https://gitlab.gnome.org/jrahmatzadeh/just-perfection.git')
md5sums=('SKIP')

pkgver() {
    cd "$srcdir"/just-perfection
    echo r$(git rev-list --count main).$(git rev-parse --short main)
}

package() {
    cd "$srcdir"/just-perfection/
    bash scripts/build.sh
    mkdir -p "$pkgdir/usr/share/gnome-shell/extensions/just-perfection-desktop@just-perfection"
    unzip just-perfection-desktop@just-perfection.shell-extension.zip -d "$pkgdir/usr/share/gnome-shell/extensions/just-perfection-desktop@just-perfection"
}