aboutsummaryrefslogblamecommitdiffstats
path: root/testing/qbittorrent-nox/APKBUILD
blob: 55ed1ae4e4a34c76a6f5bf7eb18600b910b63bc2 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                     
            
        

                                         

                          
                                           


                                                                               
                                                                                                          

                             
         
                                              
 



                      
         



                                 



            







                                                   
                                                                                                                                                                          

                                                                                                                                                        
# Contributor: Jan Tatje <jan@jnt.io>
# Maintainer: Jan Tatje <jan@jnt.io>
pkgname=qbittorrent-nox
pkgver=4.3.1
pkgrel=1
pkgdesc="qBittorrent client (webui only)"
url="https://www.qbittorrent.org/"
arch="all"
license="GPL-2.0-or-later"
options="!check" # qBittorrent has no tests
makedepends="boost-dev qt5-qtbase-dev qt5-qttools-dev libtorrent-rasterbar-dev"
install="$pkgname.pre-install"
subpackages="$pkgname-openrc $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/qbittorrent/qBittorrent/archive/release-$pkgver.tar.gz
	qbittorrent-nox.initd
	qbittorrent-nox.confd
	"
builddir="$srcdir/qBittorrent-release-$pkgver"

# secfixes:
#   4.1.6-r3:
#     - CVE-2019-13640

build() {
	./configure \
		--prefix=/usr \
		--disable-gui \
		--disable-qt-dbus
	make
}

package() {
	make INSTALL_ROOT="$pkgdir" install

	install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd \
		"$pkgdir"/etc/conf.d/$pkgname
}

sha512sums="078efb45ec65d7e1342624e71d11fc93516925b08084907266cb6154623bc8b817ecae0ce99489c48b294f8c94f5f6c5ea3f24a9a6ad005fe3249e2a67d0b815  qbittorrent-nox-4.3.1.tar.gz
310df13ca8249e2ed57b7490ffa8f6beb0b273d856a62eeb87d47b7c20c531224c03c07124c3b9ac287c00dd9c139180c39933ee33dcb1a8a6ec1f67605dcede  qbittorrent-nox.initd
999e58bcf0a528f88655611cb7d0ec2bd5f0a1aed1696b71be27e24a1708112540afa7fb37688ec865de1d9c7af6e7a2293773790bd8941bb94a1dc1f9ebe95e  qbittorrent-nox.confd"