summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d53dfa54d807508dbe90cacfc9f164d9d9ff182 (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
# Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me)
# Contributor: Sebba <sebba at cock dot li>
_pkgname='transgui'
pkgname='transmission-remote-gui-bin'
pkgver='5.18.0'
pkgrel=1
pkgdesc='Cross platform remote GUI for the Transmission daemon'
arch=('i686' 'x86_64')
url='https://github.com/leonsoft-kras/transmisson-remote-gui'
license=('GPL2')
depends=('gtk2' 'desktop-file-utils')
provides=('transmission-remote-gui')
conflicts=('transmission-remote-gui-git' 'transmission-remote-gui-gtk2'
           'transmission-remote-gui-qt4' 'transmission-remote-gui')
source=("${_pkgname}.desktop")
source_i686=("https://github.com/leonsoft-kras/${pkgname%%-bin}/releases/download/v$pkgver/$_pkgname-$pkgver-i686-linux.txz")
source_x86_64=("https://github.com/leonsoft-kras/${pkgname%%-bin}/releases/download/v$pkgver/$_pkgname-$pkgver-x86_64-linux.txz")
sha256sums=('e7ca207f88fd98423b45476370c6899cacb8f0d9a0361e231a2e1b32ce36be51')
sha256sums_i686=('9f15bcd30dfb9c46eec3422130e9de5d7910b904a57e269b62274dfdaf5496ac')
sha256sums_x86_64=('17c7929200bd91930d9d3f94b35a7b20e852a6115a20fdefc82519362719833b')

package() {
  cd "${srcdir}"
  install -D -m 755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
  install -d -m 755 "${pkgdir}/usr/share/${_pkgname}/lang"
  install -D -m 644 lang/transgui.* "${pkgdir}/usr/share/${_pkgname}/lang"
  rm "${pkgdir}/usr/share/${_pkgname}/lang/transgui.template"
  install -d -m 755 "${pkgdir}/usr/share/doc/${_pkgname}"
  install -D -m 644 README.md history.txt LICENSE \
    "${pkgdir}/usr/share/doc/${_pkgname}"
  install -D -m 644 "${_pkgname}.png" \
    "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
  install -D -m 644 "${srcdir}/${_pkgname}.desktop" \
    "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
}