summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96e02cb6afa1af89c738d2864e10d41945869f77 (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: gh0st <gh0st@vivaldi.net>

pkgname=shift-git
pkgver=0.r69.97461e4
pkgrel=1
pkgdesc="A minimalistic approach to maximum control of your Transmission. (Web UI)"
arch=('any')
url="https://github.com/killemov/Shift/"
license=('GPL')
depends=('transmission-cli')
makedepends=('git')
provides=('shift')
conflicts=('kettu-git')
source=('git+https://github.com/killemov/Shift.git')
sha256sums=('SKIP')

pkgver() {
  cd Shift

  echo "0.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

prepare() {
  cat << EOF >| shift.conf
[Service]
Environment=TRANSMISSION_WEB_HOME=/usr/share/webapps/shift
EOF
}

package() {
  install -Dm644 shift.conf "$pkgdir"/usr/lib/systemd/system/transmission.service.d/shift.conf
  install -dm755 "$pkgdir"/usr/share/webapps/shift

  cd Shift
  cp -a * "$pkgdir"/usr/share/webapps/shift
}