signald-0.23.2-r1.ebuild - parlay - yet another gentoo overlay HTML git clone https://git.parazyd.org/parlay DIR Log DIR Files DIR Refs DIR README --- signald-0.23.2-r1.ebuild (1800B) --- 1 # Copyright 2023 Gentoo Authors 2 # Distributed under the terms of the GNU General Public License v2 3 4 EAPI=8 5 6 inherit systemd 7 8 DESCRIPTION="an API for interacting with Signal Private Messenger" 9 HOMEPAGE="https://gitlab.com/signald/signald" 10 SRC_URI="https://gitlab.com/signald/signald/-/archive/${PV}.tar.bz2 -> ${P}.tar.bz2 11 https://parazyd.org/pub/mirror/gentoo/distfiles/${P}.tar.xz 12 " 13 COMMIT="8cfebfe0ab8395221eca94c4c366abb6d7f39314" 14 S="${WORKDIR}/${P}-${COMMIT}" 15 16 LICENSE="GPL-3" 17 SLOT="0" 18 KEYWORDS="~amd64" 19 20 RDEPEND="acct-user/signald 21 virtual/jre" 22 DEPEND="${RDEPEND}" 23 BDEPEND="dev-java/gradle-bin:7.3.3" 24 25 # From https://github.com/gentoo/gentoo/pull/28986 26 # TODO: inherit this eclass when the PR is merged 27 GRADLE_ARGS=( 28 --console=plain 29 --gradle-user-home "${T}/gradle_user_home" 30 --info 31 --no-build-cache 32 --no-daemon 33 --offline 34 --parallel 35 --project-cache-dir "${T}/gradle_project_cache" 36 --stacktrace 37 ) 38 39 src_unpack() { 40 default 41 mv "${WORKDIR}/gradle_project_cache" "${T}" || die 42 mv "${WORKDIR}/gradle_user_home" "${T}" || die 43 } 44 45 src_prepare() { 46 default 47 48 sed -i -e "s/sqlite-jdbc:3.40.0.0/sqlite-jdbc:3.44.1.0/" \ 49 "${S}/build.gradle" || die 50 } 51 52 src_compile() { 53 gradle "${GRADLE_ARGS[@]}" installDist || die 54 } 55 56 src_install() { 57 rm "${S}/build/install/signald/bin/signald.bat" || die 58 dodir "/var/lib" 59 mv "${S}/build/install/signald" "${ED}/var/lib" || die 60 dosym -r "/var/lib/signald/bin/signald" "usr/bin/${PN}" 61 62 newinitd "${FILESDIR}/${PN}.initd" "${PN}" 63 sed -i -e "s/^EnvironmentFile=-\/etc\/default\/signald$//" \ 64 "${S}/src/main/resources/io/finn/signald/signald.service" || die 65 sed -i -e "s/--system-socket/-s \/tmp\/signald.sock/" \ 66 "${S}/src/main/resources/io/finn/signald/signald.service" || die 67 systemd_dounit "${S}/src/main/resources/io/finn/signald/signald.service" 68 }