-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgdk-pixbuf2-mini.sh
More file actions
33 lines (26 loc) · 923 Bytes
/
gdk-pixbuf2-mini.sh
File metadata and controls
33 lines (26 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
set -e
get-pkgbuild
cd "$BUILD_DIR"
# debloat package, remove vulkan renderer, remove linking to broadway and cloudproviders
sed -i \
-e 's/glycin$/libjpeg-turbo libpng libtiff librsvg/' \
-e 's/glycin=enabled/glycin=disabled/' \
-e '/gif=.*/d' \
-e '/jpeg=.*/d' \
-e '/png=.*/d' \
-e '/tiff=.*/d' \
-e '/thumbnailer/d' \
-e 's/others=disabled/others=enabled/' \
"$PKGBUILD"
cat "$PKGBUILD"
# Do not build if version does not match with upstream
if check-upstream-version; then
makepkg -fs --noconfirm --skippgpcheck
else
exit 0
fi
ls -la
rm -fv ./*-docs-*.pkg.tar.* ./*-debug-*.pkg.tar.*
mv -v ./"$PACKAGE"-*.pkg.tar."$EXT" ../"$PACKAGE"-mini-"$ARCH".pkg.tar."$EXT"
echo "All done!"