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

                                                   
            
        
                        
                
                                                       
                                        
                          
              
                                                                 
                             
                                                                                 
                                  






                                                
                                                                                                          
                       
         
                                 
 



                           
         



                                 



                                           


                                   
                                
                                        
            

 
         


                  
           
                                      
                                   

 







                                                             







                                                              
                                                                                                                                                                  
                                                                                                                                                  
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=udisks2
pkgver=2.9.1
pkgrel=0
pkgdesc="A Disk Manager"
options="!check"
url="https://www.freedesktop.org/wiki/Software/udisks/"
arch="all !mips !mips64 !s390x" # polkit
license="GPL-2.0-or-later"
depends="dbus"
depends_dev="gobject-introspection-dev polkit-dev libatasmart-dev
	libgudev-dev acl-dev"
makedepends="$depends_dev glib-dev intltool gtk-doc linux-headers libblockdev-dev
	btrfs-progs-dev coreutils"
subpackages="
	$pkgname-dev
	$pkgname-doc
	$pkgname-lang
	$pkgname-libs
	$pkgname-bash-completion:bashcomp:noarch
	"
source="https://github.com/storaged-project/udisks/releases/download/udisks-$pkgver/udisks-$pkgver.tar.bz2
	O_CLOEXEC.patch
	"
builddir="$srcdir"/udisks-$pkgver

case "$CARCH" in
mips*)	options="!check" ;;
esac

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-lvm2 \
		--enable-lvmcache \
		--enable-btrfs \
		--disable-zram \
		--with-udevdir=/lib/udev
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/*.a
}

libs() {
	pkgdesc="Dynamic library to access the udisks daemon"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/lib*.so.* \
		"$pkgdir"/usr/lib/girepository* \
		"$subpkgdir"/usr/lib/
}

bashcomp() {
	depends=""
	pkgdesc="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	amove usr/share/bash-completion/completions
}

sha512sums="a360cafc65375153c5de65f817eecbc65d56a9d9167222e1adbc8f57568d15ccf7ed317e8e0b567340f250ca9247196de104442191bd069510f72dfc5ed65eb3  udisks-2.9.1.tar.bz2
269ba55cc755e2a484670258bc530790691b66c9fce9479a2a17d78cff5d52dd1be89290979efd44a0ba82be665f52a356a57f2cbb67951d91fe09d4e24c2a6a  O_CLOEXEC.patch"