added gtk4, helvum

This commit is contained in:
Stargirl-chan 2022-06-03 18:00:04 +02:00 committed by Ella Stanforth
parent 7d56fe94e0
commit 1f1e2b0a64
3 changed files with 116 additions and 0 deletions

52
gnome/gtk4/build.sh Normal file
View file

@ -0,0 +1,52 @@
pkgname=gtk
_pkgver=4.7
pkgver=$_pkgver.0
fetch() {
curl -L "https://download.gnome.org/sources/$pkgname/$_pkgver/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mkdir -p $pkgname-$pkgver/_build
cd $pkgname-$pkgver
patch -p1 < ../../fix-llvm-build.patch
}
build() {
cd $pkgname-$pkgver
meson _build \
--buildtype=release \
--prefix=/usr \
--libexecdir=lib \
--localstatedir=/var \
-Dbroadway-backend=false \
-Dx11-backend=false \
-Dwayland-backend=true \
-Dwin32-backend=false \
-Dcolord=disabled \
-Ddemos=false \
-Dgtk_doc=false \
-Dintrospection=disabled \
-Dbuild-tests=false \
-Dbuild-examples=false \
-Dmedia-gstreamer=disabled \
-Dvulkan=enabled \
-Dmedia-ffmpeg=enabled \
-Dgi-docgen:development_tests=false
samu -C _build
}
package() {
cd $pkgname-$pkgver
cd _build
DESTDIR=$pkgdir samu install
}
backup() {
return
}
license() {
cd $pkgname-$pkgver
cat COPYING
}

View file

@ -0,0 +1,31 @@
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -930,18 +930,26 @@
input : gtk_gresource,
output : 'gtkresources_blob.o',
command : [ld,
+ '-m', 'elf_x86_64',
'-z', 'noexecstack',
'-r',
'-b','binary',
'@INPUT@',
'-o','@OUTPUT@'])
+ gtk_resources_strip = custom_target('gtkresources_blobS.o',
+ input : gtk_resources_binary,
+ output : 'gtkresources_blobS.o',
+ command : [objcopy,
+ '--strip-all',
+ '@INPUT@',
+ '@OUTPUT@'])
+
# Rename symbol to match the one in the C file
gtk_resources_o = custom_target('gtkresources_blob2.o',
- input : gtk_resources_binary,
+ input : gtk_resources_strip,
output : 'gtkresources_blob2.o',
command : [objcopy,
- '--strip-all',
'--add-symbol','_gtk_resource_data=.data:0',
'@INPUT@',
'@OUTPUT@'])

33
snd/helvum/build.sh Normal file
View file

@ -0,0 +1,33 @@
pkgname=helvum
pkgver=0.3.4
_clear_vendor_checksums() {
sed -i 's/\("files":{\)[^}]*/\1/' vendor/$1/.cargo-checksum.json
}
fetch() {
curl -L "https://gitlab.freedesktop.org/pipewire/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.bz2" -o $pkgname-$pkgver.tar.bz2
tar -xf $pkgname-$pkgver.tar.bz2
cd $pkgname-$pkgver
mkdir -p .cargo
cargo vendor > .cargo/config
}
build() {
cd $pkgname-$pkgver
cargo build --release --locked --all-features
}
package() {
cd $pkgname-$pkgver
install -Dm755 target/release/$pkgname $pkgdir/usr/bin/$pkgname
}
backup() {
return
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}