diff --git a/srcpkgs/csound/patches/musl.patch b/srcpkgs/csound/patches/musl.patch deleted file mode 100644 index 833b04a821..0000000000 --- a/srcpkgs/csound/patches/musl.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- Top/csound.c.orig 2017-05-24 22:41:46.000000000 +0200 -+++ Top/csound.c 2017-05-25 18:35:23.438983804 +0200 -@@ -1093,7 +1093,7 @@ - - static void signal_handler(int sig) - { --#if defined(LINUX) && !defined(ANDROID) -+#if defined(__GLIBC__) - #include - - { diff --git a/srcpkgs/csound/template b/srcpkgs/csound/template index 6a5c430b7d..90ed955feb 100644 --- a/srcpkgs/csound/template +++ b/srcpkgs/csound/template @@ -1,6 +1,6 @@ # Template file for 'csound' pkgname=csound -version=6.09.0 +version=6.09.1 revision=1 build_style=cmake configure_args=" @@ -16,9 +16,18 @@ maintainer="Andrea Brancaleoni " license="LGPL-3" homepage="http://csound.github.io" distfiles="https://github.com/$pkgname/$pkgname/archive/$version.tar.gz" -checksum=fa57dcf31c33ff1f95910ebf794b2f7f6270a311224c812d54eaf660d4b92392 +checksum=d49735b4ed50f2818b577abcface45fe7f9b7fb49ccd898db030893cbcdfc738 nocross=yes +_xreplace() { + sed -i "s/$(echo $1 | sed -e 's/\([[\/.*]\|\]\)/\\&/g')/$(echo $2 | sed -e 's/[\/&]/\\&/g')/g" $3 +} + +pre_configure() { + _xreplace '#if defined(LINUX) && !defined(ANDROID)' '#if defined(__GLIBC__)' \ + Top/csound.c +} + post_install() { rm -r $DESTDIR/tmp vinstall ${FILESDIR}/csound.sh 755 etc/profile.d