New package: praat-6.0.36

Closes: #10160 [via git-merge-pr]
This commit is contained in:
newbluemoon 2017-12-21 08:01:32 +01:00 committed by Jürgen Buchmüller
parent b57b9b2e23
commit 210ab30c03
2 changed files with 54 additions and 0 deletions

1
srcpkgs/praat-nogui Symbolic link
View File

@ -0,0 +1 @@
praat

53
srcpkgs/praat/template Normal file
View File

@ -0,0 +1,53 @@
# Template file for 'praat'
pkgname=praat
version=6.0.36
revision=1
hostmakedepends="pkg-config"
makedepends="gtk+-devel alsa-lib-devel $(vopt_if pulseaudio pulseaudio-devel)"
short_desc="Speech analysis, synthesis, and manipulation"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="GPL-2"
homepage="http://www.praat.org/"
distfiles="https://github.com/praat/${pkgname}/archive/v${version}.tar.gz"
checksum=1829eedf0c03780ce29c2b1a778b4065ff19d3959dbe919b25e721206f113c52
build_options="pulseaudio"
do_build() {
mkdir /tmp/original
mv * /tmp/original
mv /tmp/original .
for _variant in $(vopt_if pulseaudio pulse alsa) nogui; do
cp -rp original $_variant
cd $_variant
cp makefiles/makefile.defs.linux.${_variant} ./makefile.defs
sed -i -e 's/$(LIBS)/& $(LDFLAGS)/' Makefile
sed -i -e 's/CC = gcc/CC = "${CC}"/' \
-e 's/CXX = g++/CXX = "${CXX}"/' \
-e 's/LINK = g++/LINK = "${CXX}"/' \
-e 's/AR = ar/AR = "${AR}"/' \
-e 's/-O\(1\|3\)//' \
-e 's/CFLAGS =/CFLAGS +=/' \
-e 's/CXXFLAGS =/CXXFLAGS +=/' \
makefile.defs
make ${makejobs} CC="$CC" CXX="$CXX" LD="$LD" AR="$AR"
mv praat* ..
cd ..
done
}
do_install() {
vbin praat
vbin praat_nogui
}
praat-nogui_package() {
short_desc+=" (nogui)"
pkg_install() {
vmove usr/bin/praat_nogui
}
}