aboutsummaryrefslogblamecommitdiffstats
path: root/community/quassel/APKBUILD
blob: bd3ded8697cb9dfd42cbaffded18afe96b85655f (plain) (tree)
1
2
3
4
5
6
7
8
9


                                              
             

                                  


                                              

                                  

                                                                               
                                                                   
                                                               

                         

         

                    
 




                                              


                                    
                                   

                                   
            


           
                          

                                                

 

                                             
                

                                       

                                      
 



                                                          
                                                              
                                                     
                                                   
                                                     
                                                   

 




                                       
                                                                



                                                  
                                                                                                                                                                    
                                                                                                                                                   
                                                                                                                                                    
# Maintainer: Yves Schumann <yves@eisfair.org>

pkgname=quassel
pkgver=0.13.0
pkgrel=2
url="https://www.quassel-irc.org/"
pkgdesc="Distributed IRC client - metapackage"
arch="all"
license="GPL"
install="quassel-core.pre-install"
depends="quassel-common"
makedepends="qt5-qtbase-dev qt5-qtscript-dev cmake dbus-dev openssl-dev paxmark
	zlib-dev"
subpackages="$pkgname-common::noarch $pkgname-core $pkgname-client"
source="https://www.quassel-irc.org/pub/quassel-$pkgver.tar.bz2
       quasselcore.confd
       quasselcore.initd"

build() {
	cd "$srcdir"
	mkdir build

	cd build
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr/ \
		-DWITH_KDE=0 \
		-DCMAKE_BUILD_TYPE="Release" \
		-DWANT_CORE=ON \
		-DWANT_MONO=ON \
		-DWANT_QTCLIENT=ON \
		-DWITH_WEBKIT=OFF \
                -DUSE_QT4=OFF \
		../quassel-$pkgver/
	make
}

package() {
	cd "$srcdir"/build
	make DESTDIR="$pkgdir" install/fast
	paxmark -m "$pkgdir"/usr/bin/quasselcore
}

common() {
	pkgdesc="Quassel common/shared files"
	depends=
	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/share/icons \
		"$subpkgdir"/usr/share
}

core() {
	pkgdesc="Core component of distributed IRC client"
	depends="$pkgname-common"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/quasselcore "$subpkgdir"/usr/bin/
	install -Dm0644 "$srcdir"/quasselcore.confd \
		"$subpkgdir"/etc/conf.d/quasselcore
	install -Dm0755 ${srcdir}/quasselcore.initd \
		"$subpkgdir"/etc/init.d/quasselcore
}

client() {
	pkgdesc="Quassel client"
	depends="$pkgname-common"
	mkdir -p "$subpkgdir"/usr/bin \
		"$subpkgdir"/usr/share/
	mv "$pkgdir"/usr/bin/quasselclient "$subpkgdir"/usr/bin/
	mv "$pkgdir"/usr/share/pixmaps \
		"$pkgdir"/usr/share/applications \
		"$subpkgdir"/usr/share/
}
sha512sums="a0710ccdd01c5a9731ba72f7f8430e435c95f8709a187ddee68dde48eb6dd575a6281a4461a0d2509f7373d7861d9b6c0d29089929a4b8043b0e9334032087bf  quassel-0.13.0.tar.bz2
e03df342f47945f948106883a7757262ab7a8a7d21f0b4dd01cfcc95e836c2e00f2e0177a353b4f7a4b6f80ffa970be06d49aa9a42cad1f3834382267e5a0d7f  quasselcore.confd
a7181ea28d821e39c005aaaaeed821f815371f76c2e98bd5935013bb9a0ba0ab6fce9c202bab6be3eaa7895773150fc5832ea3ce9050dbea73d6db514f51da6a  quasselcore.initd"