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

                                                  
                   

            
                                                                              
                             

                                        
                                               
                          
                      

















                                                                                             
                                                     
                                      
                                       

           
                       



                                  



                                      





                                                                
                                      

                                                           
 
                                                                                                                                                                      

                                                                                                                                                                                
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=consolekit2
pkgver=1.2.2
pkgrel=0
pkgdesc="Framework for defining and tracking users, login sessions, and seats"
provides="consolekit=$pkgver"
replaces="consolekit"
arch="all !mips !mips64 !s390x" # polkit
url="https://consolekit2.github.io/ConsoleKit2"
license="GPL-2.0-or-later"
depends="polkit eudev"
makedepends="
	autoconf
	automake
	eudev-dev
	gettext-dev
	glib-dev
	libdrm-dev
	libnih-dev
	libtool
	libxslt-dev
	polkit-dev
	xorg-server-dev
	zlib-dev
	"
source="https://github.com/ConsoleKit2/ConsoleKit2/archive/$pkgver/ConsoleKit2-$pkgver.tar.gz
	0001-busybox-reboot-and-poweroff-support.patch
	pam-foreground-compat.ck
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
builddir="$srcdir/ConsoleKit2-$pkgver"
options="!check" #no testsuite provided

prepare() {
	default_prepare
	NOCONFIGURE=1 ./autogen.sh
}

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static
	sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -m 755 "$srcdir"/pam-foreground-compat.ck \
		"$pkgdir"/usr/lib/ConsoleKit/run-session.d/
}
sha512sums="7f9a4c77c7991b7a3751605f58f12bb079660fe974aeec385a9753dc4b33241052153b9a9261effc91e86323e8a9dcbc9269c4829b871ab91ef286506ff3b18b  ConsoleKit2-1.2.2.tar.gz
ec0c88e640afac0561c84131d63fa8c9e2e29611b789ae5c163cd11465b22017602d88dc853866624f57bce2ee466ab63af075d083a9ba6e87327ad8d0a0769f  0001-busybox-reboot-and-poweroff-support.patch
3b114fbbe74cfba0bfd4dad0eb1b85d08b4979a998980c1cbcd7f44b8a16b0ceca224680d4f4a1644cd24698f8817e5e8bdfcdc4ead87a122d0e323142f47910  pam-foreground-compat.ck"