summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 78e1bbee7cd5364c3661af92c9c3916c289c2542 (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
28
29
30
31
# Maintainer: LinArcx <linarcx@gmail.com>

pkgname=gnome-shell-extension-show-desktop-button
pkgver=r5.46611f9
pkgrel=1
pkgdesc="Add Show Desktop Button to Gnome Panel."
arch=(any)
url="https://github.com/LinArcX/Show-Desktop-Button"
license=(GPL3)
depends=('gnome-shell>=3.24')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=("${pkgname%-git}")
makedepends=(git)
# install='gnome-shell-extension.install'
source=("${pkgname%-git}"::"git+https://github.com/LinArcX/Show-Desktop-Button")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
  install -d "$pkgdir/usr/share/gnome-shell/extensions/show-desktop-button@amivaleo"
  cp -a $srcdir/${pkgname%-git}/* "$pkgdir/usr/share/gnome-shell/extensions/show-desktop-button@amivaleo"
  rm -rf $pkgdir/usr/share/gnome-shell/extensions/show-desktop-button@amivaleo/.git
}