summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 176ebace370675109ecd3a8f908f2653981d6890 (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
32
33
# Maintainer: Myles Bruteforce <myles_bruteforce at slmail dot me>
pkgname=gnome-shell-extension-order-icons-git
_pkgname=order-icons
_uuid='order-extensions@wa4557.github.com'
pkgver=r42.9be1082
pkgrel=1
pkgdesc="Gnome Shell extension for ordering icons in the top bar like for Ubuntu unity"
arch=('any')
url="https://github.com/andia89/order-icons"
license=('MIT')
depends=('gnome-shell')
makedepends=('git')
source=("git+https://github.com/andia89/order-icons.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  revision=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
  echo $revision
}

package() {
  cd "$srcdir/$_pkgname"

  install -d "$pkgdir/usr/share/gnome-shell/extensions/$_uuid"
  install -d "$pkgdir/usr/share/gnome-shell/extensions/$_uuid/schemas"

  install -Dm644 $_uuid/extension.js -t "${pkgdir}/usr/share/gnome-shell/extensions/$_uuid"
  install -Dm644 $_uuid/metadata.json -t "${pkgdir}/usr/share/gnome-shell/extensions/$_uuid"
  install -Dm644 $_uuid/prefs.js -t "${pkgdir}/usr/share/gnome-shell/extensions/$_uuid"
  install -Dm644 $_uuid/schemas/gschemas.compiled -t "${pkgdir}/usr/share/gnome-shell/extensions/$_uuid/schemas"
  install -Dm644 $_uuid/schemas/org.gnome.shell.extensions.order-icons.gschema.xml -t "${pkgdir}/usr/share/gnome-shell/extensions/$_uuid/schemas"
}