mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
44 lines
1.4 KiB
Bash
44 lines
1.4 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
# contributor : Stephen McIntosh <stephenmac7@gmail.com>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgbase=transmission
|
|
pkgname=('transmission-qt')
|
|
pkgdesc="Fast, easy, and free BitTorrent client (Qt GUI)"
|
|
pkgver=2.12
|
|
pkgrel=1
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.transmissionbt.com/"
|
|
license=('MIT')
|
|
makedepends=('intltool' 'curl' 'pkgconfig' 'desktop-file-utils' 'qt' 'libevent')
|
|
depends=('curl' 'qt' 'libevent')
|
|
optdepends=('transmission-cli: daemon and web support')
|
|
source=(http://mirrors.m0k.org/transmission/files/${pkgbase}-${pkgver}.tar.bz2)
|
|
md5sums=('f3d34fdbbf3ae25635f9e7bf7e662cd9')
|
|
build() {
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
export CFLAGS="$CFLAGS -fno-strict-aliasing"
|
|
|
|
./configure --prefix=/usr
|
|
make
|
|
pushd qt
|
|
qmake qtr.pro
|
|
make
|
|
}
|
|
package() {
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
make -C qt INSTALL_ROOT="${pkgdir}"/usr install
|
|
|
|
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/transmission-qt/COPYING"
|
|
install -D -m644 qt/icons/transmission.png "${pkgdir}/usr/share/pixmaps/transmission-qt.png"
|
|
install -D -m644 qt/transmission-qt.desktop "${pkgdir}/usr/share/applications/transmission-qt.desktop"
|
|
}
|