volume_key: fixed build on systems that have problems including Python.h

This commit is contained in:
Tim Biermann 2023-06-10 09:24:16 +02:00
parent 7e80964d90
commit 827dd4002d
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 13 additions and 3 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF35U68ykEBqWZSl9YldFGg5cm6bzDe42casbdS8E9BgImK4HUb55hB+iMjgIwsgzGAJMEbeq5gxx4IfOZ2hqwPgg=
SHA256 (Pkgfile) = c397ee5c25b0334cb4e21fd6e9944f3670fefa709805dcc6f6982c47e80f5c5d
RWSagIOpLGJF32f073f1UqGW3E3YjGjFUTLYvEqjewzXFrU4EkjBD7I9O7i/pkEBLzg9Au82QccurFD9t23bMIXEgDD8MMKbGAc=
SHA256 (Pkgfile) = 4ff98a4fe551dcc34dadf0c97eb6821c94e08a0443821c8ae59d249b34f4f198
SHA256 (.footprint) = d79ab5288afaf8bb197915878a4531422e9bf4068ab56079c90e5379e51f7c92
SHA256 (volume_key-0.3.12.tar.xz) = 6ca3748fc1dad22c450bbf6601d4e706cb11c5e662d11bb4aeb473a9cd77309b

View File

@ -5,14 +5,24 @@
name=volume_key
version=0.3.12
release=1
release=2
source=(https://releases.pagure.org/$name/$name-$version.tar.xz)
build() {
cd $name-$version
autoreconf -fiv
find . -name ".pyc" -delete
export CFLAGS+=" $(/usr/bin/python3-config --includes)"
./configure \
--prefix=/usr \
--with-python3 \
--with-python=no \
--disable-nls
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
make DESTDIR=$PKG install
}