summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bf7a475649f9078ee9970fda4fa1e19d6294aa98 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
# Contributor: Anthony Ruhier <anthony.ruhier@gmail.com>
pkgname=headphones
pkgver=0.6.1
pkgrel=2
pkgdesc="Music downloader for usenet and torrents."
arch=('any')
url="https://github.com/rembo10/headphones"
license=('GPL-3.0-only')
conflicts=("${pkgname}")
depends=(
  'python>=3.11'
  'python-urllib3'
  'python-pytz'
  'python-requests-toolbelt'
  'python-markupsafe'
  'python-mako'
  'python-html5lib'
  'python-pylast'
  'python-jaraco.classes'
  'python-six'
  'python-musicbrainzngs'
  'python-cryptography'
  'python-jaraco.context'
  'python-lxml'
  'python-certifi'
  'python-colorama'
  'python-jaraco.text'
  'python-yaml'
  'python-gobject'
  'python-jaraco.functools'
  'python-beautifulsoup4'
  'gobject-introspection-runtime'
  'python-setuptools'
  'python-pillow'
  'python-mutagen'
  'python-zipp'
  'python-more-itertools'
  'python-soupsieve'
  'python-chardet'
  'python-pygments'
  'python-idna'
  'gstreamer'
  'python-simplejson'
  'python-requests'
  'python-pyqt5-webkit'
  'python-pyxdg'
)
optdepends=(
  'sabnzbd: usenet downloader'
  'nzbget: usenet downloader'
  'transmission-cli: torrent downloader (CLI and daemon)'
  'transmission-gtk: torrent downloader (GTK+)'
  'transmission-qt: torrent downloader (Qt)'
  'deluge: torrent downloader'
  'rtorrent: torrent downloader'
  'jackett: torrent indexer proxy'
)
install="${pkgname}.install"
source=(
  "${pkgname}.git::git+${url}#tag=v${pkgver}"
  "${pkgname}.service"
  "${pkgname}.sysusers"
  "${pkgname}.tmpfiles"
)
sha256sums=('SKIP'
            'e2ba604cdd1f16274a3267f5354972bb60f462ff60ac069391e8ab778af8ec3c'
            '348abc0627d63762a97655b5893c306e5b923857be5d0b876e9df5fea7ef9ed9'
            'ff2a4be9594518b670dafe80023772affc5e8cca85bb4c95972c7c14c72453c2')
package() {
  install -Dm755 -d "${pkgdir}/opt/${pkgname}"
  cp -a "${srcdir}/${pkgname}.git"/* "${pkgdir}/opt/${pkgname}"
  install -Dm 644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
  install -Dm 644 "${srcdir}/${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
  install -Dm 644 "${srcdir}/${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
}