mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
New package: chatty-9.0
This commit is contained in:
parent
bd549165be
commit
4e18b82f99
4 changed files with 80 additions and 0 deletions
4
srcpkgs/chatty/files/chatty
Normal file
4
srcpkgs/chatty/files/chatty
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
cd /usr/share/chatty
|
||||||
|
export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH
|
||||||
|
java -jar Chatty.jar "$@"
|
19
srcpkgs/chatty/patches/config_dir.patch
Normal file
19
srcpkgs/chatty/patches/config_dir.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
*** src/chatty/Chatty.java 2017-12-26 11:56:51.000000000 -0500
|
||||||
|
--- src/chatty/Chatty.patched.java 2018-02-19 04:41:33.348588121 -0500
|
||||||
|
***************
|
||||||
|
*** 91,97 ****
|
||||||
|
* Custom Settings directory, either the current working directory if the
|
||||||
|
* -cd parameter was used, or the directory specified with the -d parameter.
|
||||||
|
*/
|
||||||
|
! private static String settingsDir = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parse the commandline arguments and start the actual chat client.
|
||||||
|
--- 91,97 ----
|
||||||
|
* Custom Settings directory, either the current working directory if the
|
||||||
|
* -cd parameter was used, or the directory specified with the -d parameter.
|
||||||
|
*/
|
||||||
|
! private static String settingsDir = System.getProperty("user.home") + File.separator + ".config" + File.separator + "chatty";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parse the commandline arguments and start the actual chat client.
|
19
srcpkgs/chatty/patches/disable_version_check.patch
Normal file
19
srcpkgs/chatty/patches/disable_version_check.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
*** src/chatty/Chatty.java 2018-02-19 04:22:40.961744905 -0500
|
||||||
|
--- src/chatty/Chatty.patched.java 2018-02-19 04:24:16.080555756 -0500
|
||||||
|
***************
|
||||||
|
*** 60,66 ****
|
||||||
|
* Enable Version Checker (if you compile and distribute this yourself, you
|
||||||
|
* may want to disable this)
|
||||||
|
*/
|
||||||
|
! public static final boolean VERSION_CHECK_ENABLED = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The regular URL of the textfile where the most recent version is stored.
|
||||||
|
--- 60,66 ----
|
||||||
|
* Enable Version Checker (if you compile and distribute this yourself, you
|
||||||
|
* may want to disable this)
|
||||||
|
*/
|
||||||
|
! public static final boolean VERSION_CHECK_ENABLED = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The regular URL of the textfile where the most recent version is stored.
|
38
srcpkgs/chatty/template
Normal file
38
srcpkgs/chatty/template
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
#Template file for 'chatty'
|
||||||
|
pkgname=chatty
|
||||||
|
version=0.9
|
||||||
|
revision=1
|
||||||
|
noarch=yes
|
||||||
|
hostmakedepends="openjdk gradle"
|
||||||
|
depends="virtual?java-runtime"
|
||||||
|
short_desc="Chatty is a Twitch Chat Client for Desktop"
|
||||||
|
maintainer="Phenethylamine <beta.phenylethylamine@gmail.com>"
|
||||||
|
license="GPL-3"
|
||||||
|
homepage="http://chatty.github.io/"
|
||||||
|
distfiles="https://github.com/chatty/chatty/archive/v${version}.tar.gz http://chatty.github.io/Chatty_icon_256x256.png>chatty.png"
|
||||||
|
skip_extraction="chatty.png"
|
||||||
|
checksum="856623df053fa5a4498df736825380834c4c5ef9407f81ba13cc947e3fed1a99 8821ea5bca093b01ec244b80a76df95211aa2c151fc6320e0d3e98380108d904"
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
gradle shadowJar
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
vmkdir usr/share/${pkgname}
|
||||||
|
vinstall build/libs/Chatty.jar 644 usr/share/${pkgname}
|
||||||
|
|
||||||
|
vmkdir usr/share/${pkgname}/img
|
||||||
|
vinstall assets/img/chatty.png 644 usr/share/${pkgname}/img
|
||||||
|
vinstall assets/img/star.png 644 usr/share/${pkgname}/img
|
||||||
|
|
||||||
|
vmkdir usr/share/${pkgname}/sounds
|
||||||
|
vinstall assets/sounds/ding.wav 644 usr/share/${pkgname}/sounds
|
||||||
|
vinstall assets/sounds/dingdong.wav 644 usr/share/${pkgname}/sounds
|
||||||
|
vinstall assets/sounds/typing.wav 644 usr/share/${pkgname}/sounds
|
||||||
|
|
||||||
|
vbin $FILESDIR/${pkgname} 755 usr/bin/
|
||||||
|
|
||||||
|
vinstall ${XBPS_SRCDISTDIR}/${pkgname}-${version}/chatty.png 644 usr/share/pixmaps
|
||||||
|
|
||||||
|
vlicense assets/LICENSE
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue