diff options
author | dustball | 2020-07-28 17:06:37 +0200 |
---|---|---|
committer | dustball | 2020-07-28 17:06:37 +0200 |
commit | d1e908e74b45c58f08ade158e5a26c110df78322 (patch) | |
tree | 8678f65d4b07912d444a8b5fa5e7757a2e83a88b /PKGBUILD | |
parent | e6d2499c3f8f0b99fed603c4e53d05dade8621b6 (diff) | |
download | aur-d1e908e74b45c58f08ade158e5a26c110df78322.tar.gz |
use patch instead of sed
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -9,18 +9,15 @@ url="http://gnaural.sourceforge.net/" license=('GPL') depends=('libglade' 'portaudio') install="$pkgname.install" -source=("http://downloads.sourceforge.net/project/$pkgname/Gnaural/${pkgname}_${pkgver}.tar.xz") -md5sums=('a3f909ca56466393c9eef42f25fc028b') +source=("http://downloads.sourceforge.net/project/$pkgname/Gnaural/${pkgname}_${pkgver}.tar.xz" + "gnaural.patch") +md5sums=('a3f909ca56466393c9eef42f25fc028b' + '7b8a6f84ca8aeb01cf5b46e76027c1b5') build() { cd "$srcdir/${pkgname}_${pkgver}" - # Fix a bug where an inlined function isn't marked as extern. GCC seems to have tolerated rather long, but eventually broke. - sed -i 's/#endif/extern inline void BB_ResetAllVoices ();\n#endif/g' src/main.h src/gnauralXML.h - sed -i 's/^inline void BB_ResetAllVoices/void BB_ResetAllVoices/g' src/BinauralBeat.c - - # desktop file path fix - sed -i "s|gnome/apps/Multimedia|applications|g" Makefile.* + patch --strip=1 < "$srcdir/gnaural.patch" ./configure --prefix=/usr make |