summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 531a8d8156387210cf6ee50ac68067f84bb5172f (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
34
35
36
# Maintainer: Maxim Andersson <thesilentboatman@gmail.com>

pkgname=gnome-shell-extension-transmission-daemon-git
_gitname=gnome-shell-extension-transmission-daemon
pkgver=r172.fd98510
pkgrel=1
pkgdesc="Gnome Shell indicator for transmission-daemon"
arch=('any')
url="https://github.com/thekevjames/gnome-shell-extension-transmission-daemon"
license=('GPL2')
depends=('gnome-shell')
makedepends=('git')
provides=('gnome-shell-extension-transmission-daemon')
conflicts=('gnome-shell-extension-transmission-daemon')
install=${pkgname}.install
source=('git://github.com/thekevjames/gnome-shell-extension-transmission-daemon.git')
sha256sums=('SKIP')

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

package() {
  _uuid='transmission-daemon@patapon.info'

  install -d "${pkgdir}/usr/share/gnome-shell/extensions"
  install -d "${pkgdir}/usr/share/glib-2.0/schemas/"

  cd "${srcdir}/${_gitname}"
  mv "${_uuid}/schemas/org.gnome.shell.extensions.transmission-daemon.gschema.xml" \
    "${pkgdir}/usr/share/glib-2.0/schemas/"
  cp -af "${_uuid}" "${pkgdir}/usr/share/gnome-shell/extensions/"
}

# vim:set ts=2 sw=2 et: