38 lines
927 B
Bash
38 lines
927 B
Bash
#!/usr/bin/env bash
|
|
name='xcb-proto'
|
|
release='4'
|
|
version='1.17.0'
|
|
url='https://xcb.freedesktop.org/'
|
|
description='X C-language Bindings protocol headers'
|
|
email='kurth4cker@tutanota.com'
|
|
maintainer='kurth4cker'
|
|
license=('MIT')
|
|
source=("https://xorg.freedesktop.org/archive/individual/proto/xcb-proto-${version}.tar.xz")
|
|
depends=( )
|
|
makedepends=(python libxml2)
|
|
sha256sums=('2c1bacd2110f4799f74de6ebb714b94cf6f80fb112316b1219480fd22562148c')
|
|
uses=()
|
|
arch=('x86_64')
|
|
group=(x11.base)
|
|
|
|
cd $name-$version
|
|
|
|
setup(){
|
|
autoreconf -vfi
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib64 \
|
|
--with-python_prefix=/usr/lib64/python3 \
|
|
--with-python_exec_prefix=/usr/lib64/python3
|
|
}
|
|
|
|
build(){
|
|
make $jobs
|
|
}
|
|
|
|
package(){
|
|
make install $jobs
|
|
# Move files
|
|
mv ${DESTDIR}/usr/lib64/python3/lib/python*/site-packages/xcbgen ${DESTDIR}/usr/lib64/python3/xcbgen
|
|
rm -rf ${DESTDIR}/usr/lib64/python3/lib
|
|
}
|