diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 14 insertions, 15 deletions
@@ -1,37 +1,36 @@ # Maintainer: gh0st <gh0st@vivaldi.net> -_pkgname=Shift pkgname="shift-git" pkgver=0.r69.97461e4 pkgrel=1 pkgdesc='A minimalistic approach to maximum control of your Transmission. (Web UI)' -arch=('i686' 'x86_64' 'any') -url="https://github.com/killemov/$_pkgname" +arch=('any') +url='https://github.com/killemov/Shift/' license=('GPL') -depends=(transmission-cli) +depends=('transmission-cli') makedepends=('git') -provides=("$_pkgname=$pkgver") -conflicts=("kettu-git") -source=("$_pkgname"::"git+https://github.com/killemov/$_pkgname.git") -md5sums=('SKIP') +provides=('shift') +conflicts=('kettu-git') +source=('git+https://github.com/killemov/Shift.git') +sha256sums=('SKIP') pkgver() { - cd "$_pkgname" + cd Shift echo "0.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" } prepare() { - cat << EOF >| $_pkgname.conf + cat << EOF >| shift.conf [Service] -Environment=TRANSMISSION_WEB_HOME=/usr/share/webapps/$_pkgname +Environment=TRANSMISSION_WEB_HOME=/usr/share/webapps/shift EOF } package() { - install -Dm644 $_pkgname.conf "$pkgdir/usr/lib/systemd/system/transmission.service.d/$_pkgname.conf" - install -dm755 "$pkgdir/usr/share/webapps/$_pkgname" + install -Dm644 shift.conf "$pkgdir"/usr/lib/systemd/system/transmission.service.d/shift.conf + install -dm755 "$pkgdir"/usr/share/webapps/shift - cd "$_pkgname" - cp -a * "$pkgdir/usr/share/webapps/$_pkgname" + cd Shift + cp -a * "$pkgdir"/usr/share/webapps/shift } |