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

                                                              
                                                          
             


                                                  
                                                     
                                    

              
                

                                                         
                                                          

                                                                  
                                        

                                                                                   
 
           
                      
                                  



                            




                                             
                                               
                                           

                  


           
                            


                                                    
                                                                                                                                                                   
# Contributor: Mari Hahn <mari.hahn@wwu.de>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=tint2
pkgver=0.14.6
_gitver="8046600a552774253939b8a83bdd3fc0e60dacec"
pkgrel=0
pkgdesc="tint2 is a simple unintrusive panel/taskbar"
url="https://gitlab.com/o9000/tint2"
arch="all"
license="GPL2"
options="!check"
depends="imlib2 glib pango cairo libxcomposite libxdamage
	libxinerama libxrandr gtk+"
makedepends="cmake imlib2-dev glib-dev pango-dev cairo-dev
    libxcomposite-dev libxdamage-dev libxinerama-dev libxrandr-dev
    gtk+-dev librsvg-dev startup-notification-dev linux-headers"
subpackages="$pkgname-doc $pkgname-lang"
source="http://dev.alpinelinux.org/archive/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
builddir="$srcdir"/$pkgname-${pkgver}-$_gitver

prepare() {
	cd "$builddir"
	mkdir -p build || return 1
}

build() {
	cd "$builddir"/build
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		..
	make
}

package() {
	cd "$builddir"/build
	make DESTDIR="${pkgdir}" install || return 1
}

sha512sums="147e529cd14d7f445737e84b000a78d125b11734ac6d2212f55f0a84d3858256b3b96f0bfa5c5ecf6980a3fda45f08072c081ba1101ce0d135e2a30711ce2323  tint2-0.14.6.tar.bz2"