transmission: remove obsolete replaces; use vopt helpers.

This commit is contained in:
Juan RP 2015-02-21 13:11:28 +01:00
parent a44cd245bc
commit 60d819a9c3
1 changed files with 6 additions and 10 deletions

View File

@ -1,16 +1,18 @@
# Template file for 'transmission' # Template file for 'transmission'
pkgname=transmission pkgname=transmission
version=2.84 version=2.84
revision=6 revision=7
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-nls --enable-cli --enable-daemon --enable-utp" configure_args="--enable-nls --enable-cli --enable-daemon --enable-utp
$(vopt_with systemd systemd-daemon)"
hostmakedepends="pkg-config intltool" hostmakedepends="pkg-config intltool"
makedepends="zlib-devel libressl-devel dbus-glib-devel libcurl-devel libevent-devel gtk+3-devel" makedepends="zlib-devel libressl-devel dbus-glib-devel libcurl-devel
libevent-devel gtk+3-devel $(vopt_if systemd systemd-devel)"
short_desc="A fast, easy, and free BitTorrent client" short_desc="A fast, easy, and free BitTorrent client"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.transmissionbt.com/" homepage="http://www.transmissionbt.com/"
license="MIT, GPL-2" license="MIT, GPL-2"
distfiles="http://download.transmissionbt.com/files/$pkgname-$version.tar.xz" distfiles="https://transmission.cachefly.net/${pkgname}-${version}.tar.xz"
checksum=a9fc1936b4ee414acc732ada04e84339d6755cd0d097bcbd11ba2cfc540db9eb checksum=a9fc1936b4ee414acc732ada04e84339d6755cd0d097bcbd11ba2cfc540db9eb
# Create transmission system user/group # Create transmission system user/group
@ -18,15 +20,9 @@ system_accounts="transmission"
transmission_homedir="/var/lib/transmission" transmission_homedir="/var/lib/transmission"
make_dirs="/var/lib/transmission 0755 transmission transmission" make_dirs="/var/lib/transmission 0755 transmission transmission"
subpackages="transmission-gtk" subpackages="transmission-gtk"
replaces="runit-void<20141013_2"
# Package build options # Package build options
build_options="systemd" build_options="systemd"
if [ "$build_option_systemd" ]; then
configure_args+=" --with-systemd-daemon"
makedepends+=" systemd-devel"
systemd_services="transmission-daemon.service on"
fi
if [ -z "$CROSS_BUILD" ]; then if [ -z "$CROSS_BUILD" ]; then
makedepends+=" qt5-devel qt5-tools-devel" makedepends+=" qt5-devel qt5-tools-devel"