summaryrefslogblamecommitdiff
path: root/user/volume_key/APKBUILD
blob: 69da507920cbee2c169c995a2a6876a53c7a9f38 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                  
             
        





                                                          
                        
                                                                  
                                                 
                                                                    
                                                                         
 




                           
         
                                        




                                         


                                      



            



                  





                                              
                                                            

 
                                                                                                                                                                       
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=volume_key
pkgver=0.3.12
pkgrel=2
pkgdesc="Storage volume encryption key management library"
url="https://pagure.io/volume_key"
arch="all"
options="!check"  # well, this is busted.
license="GPL-2.0+"
depends=""
checkdepends="nss-tools"
makedepends="cryptsetup-dev glib-dev gpgme-dev nss-dev python3-dev
	util-linux-dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang py-$pkgname:py"
source="https://releases.pagure.org/volume_key/volume_key-$pkgver.tar.xz"

prepare() {
	autoreconf -i  #998
	default_prepare
}

build() {
	PYTHON3=python3.11 ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-python=no \
		--with-python3
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

py() {
	pkgdesc="$pkgdesc (Python 3 bindings)"
	mkdir -p "$subpkgdir"/usr/lib/
	mv "$pkgdir"/usr/lib/python3.* "$subpkgdir"/usr/lib/
}

sha512sums="d056154c9b9d23e4eb661946dd59ed97e116903a3afcff9d9e29258408082f33dcbb69958724143f6bf191a3da488a03b6c02af287790990ed6459e29d66553c  volume_key-0.3.12.tar.xz"