blob: bf333200511edbaa980cfa2d1f8a655439be3d54 (
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
|
# Maintainer: Frederik “Freso” S. Olesen <archlinux@freso.dk>
# Contributor: Tony Lambiris <tony@libpcap.net>
# Contributor: Christoph Korn <christoph.korn at posteo dot de>
_pkgname=chatty
pkgname=java-${_pkgname}-git
pkgver=0.27b3.r0.gc69f2574
pkgrel=1
pkgdesc='Twitch Chat Client for Desktop'
arch=('any')
url='https://chatty.github.io/'
license=('GPL-3.0-or-later')
depends=('java-runtime' 'sh')
optdepends=('streamlink: for watching streams in a custom video player.'
'livestreamer: for watching streams in a custom video player.')
makedepends=(
'git'
'gradle'
'java-environment'
)
provides=("${pkgname%-git}")
conflicts=('chatty' "${pkgname%-git}")
source=('git+https://github.com/chatty/chatty'
"${_pkgname}.desktop"
"${_pkgname}_script"
'disable_version_check.patch')
b2sums=('SKIP'
'8eaa2a6a1f16b4c65c046b5d524b8237132f40c50bfd952f34e8296c8cc3c299c0eb8abf528aa167373bd844da9c0ad265181984d3dab04b86fc4efdd5100281'
'ad27872651f6481b52721b286f3b22b5dde3c9d3a9f3bdf155a361f5733d20c0bd97515d283f0d038e96903e91e62e363dbb57aee25e018a4e7f4aa014ec715b'
'fa6495c018023f244a924c2a37eafde6f26c13e4664480ca2ffdb3d7e97ba644f78db42bd75649825966ff70a3cfb1a4e9eff41087c501528f964f32ed0defe5')
pkgver() {
cd "${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-b/b/;s/-/./g;s/^v//g'
}
prepare() {
cd "${_pkgname}"
patch -p1 -i '../disable_version_check.patch'
}
build() {
cd "${_pkgname}"
export GRADLE_USER_HOME="$srcdir/.gradle"
./gradlew --quiet build
./gradlew --quiet release
}
package(){
cd "${_pkgname}"
mkdir -p "${srcdir}/Chatty_${pkgver}"
pushd "${srcdir}/Chatty_${pkgver}"
_zipfile="$(ls -t "${srcdir}/${_pkgname}"/build/releases/Chatty_*.zip | head -1)"
bsdcpio -i -m --make-directories < "${_zipfile}"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
install -Dm644 "readme.txt" "${pkgdir}/usr/share/doc/${_pkgname}/readme.txt"
install -Dm644 "Chatty.jar" "${pkgdir}/usr/share/${_pkgname}/Chatty.jar"
cp -a 'img' 'sounds' "${pkgdir}/usr/share/${_pkgname}/"
popd
install -Dm755 "${srcdir}/${_pkgname}_script" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
install -Dm644 "src/chatty/gui/app_main_16.png" "${pkgdir}/usr/share/icons/hicolor/16x16/apps/${_pkgname}.png"
install -Dm644 "src/chatty/gui/app_main_64.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/${_pkgname}.png"
install -Dm644 "src/chatty/gui/app_main_128.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/${_pkgname}.png"
}
|