7fc9190f0e
* gcc is kept at -Np0, because of void-cross ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
# Template file for 'gogglesmm'
|
|
pkgname=gogglesmm
|
|
version=1.2.1
|
|
revision=5
|
|
archs="x86_64* i686* aarch64* armv7* ppc64*"
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config desktop-file-utils"
|
|
makedepends="libepoxy-devel glu-devel libSM-devel libXcursor-devel libXrandr-devel libXi-devel libXft-devel
|
|
libwebp-devel libjpeg-turbo-devel libpng-devel openssl-devel libvorbis-devel libogg-devel libflac-devel
|
|
faad2-devel opus-devel taglib-devel sqlite-devel dbus-devel alsa-lib-devel pulseaudio-devel"
|
|
depends="hicolor-icon-theme"
|
|
short_desc="Music Manager and Player"
|
|
maintainer="Jarbowski <jarbowski@cock.lu>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://gogglesmm.github.io/"
|
|
distfiles="https://github.com/gogglesmm/gogglesmm/archive/${version}.tar.gz"
|
|
checksum=f068667e0a825ac792eda344cbe94c29fe8668ddbdd269c094e5bf168acd2380
|
|
python_version=2 #unverified
|
|
nocross="Tries to execute compiled code"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) broken="PTHREAD_RWLOCK_PREFER_WRITER_NP usage" ;;
|
|
esac
|
|
|
|
# this plugin has little endian only code
|
|
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
|
configure_args+=" -DWITH_MAD=OFF"
|
|
else
|
|
makedepends+=" libmad-devel"
|
|
fi
|