PKGBUILDs/community/snd/PKGBUILD
2020-01-07 19:05:20 +00:00

65 lines
2.2 KiB
Bash

# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Ray Rashif <schiv@archlinux.org>
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - build with pulseaudio as sound server, not jack (x86 asm)
pkgname=snd
pkgver=20.0
pkgrel=1
pkgdesc="An advanced sound editor"
arch=('x86_64')
url="https://ccrma.stanford.edu/software/snd/"
license=('custom:free')
groups=('pro-audio')
depends=('alsa-lib' 'cairo' 'fftw' 'glibc' 'glib2' 'gmp' 'gsl' 'gtk3' 'pulseaudio'
'libmpc' 'libsamplerate' 'pango' 'ruby')
makedepends=('flac' 'gendesk' 'glu' 'ladspa' 'libpulse' 'libxpm' 'mpg123'
'openmotif' 'speex' 'timidity++' 'vorbis-tools' 'wavpack')
optdepends=('wavpack: For wav support'
'flac: For flac support'
'speex: For speex support'
'mpg123: For MPEG support'
'timidity++: For MIDI to WAVE support'
'vorbis-tools: For OGG support')
source=("https://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('4585df8639488a41fb64ff696fa666dd677623bc59459a178682602b49ed339a86ce9f3f215cba7af0104205edf7f5368c90fd719e28db5af1161d1b159ed25b')
prepare() {
cd "${pkgname}-${pkgver}"
# create XDG desktop file, as the default is broken
gendesk -f -n \
--pkgname "${pkgname}" \
--name "${pkgname}" \
--exec "${pkgname}" \
--genericname "Sound Editor" \
--categories "AudioVideo;Audio"
}
build() {
cd "${pkgname}-${pkgver}"
./configure --prefix=/usr \
--with-alsa \
--with-gmp \
--with-gtk \
--with-ladspa \
--with-pulseaudio \
--with-ruby
make
}
package() {
cd "${pkgname}-${pkgver}"
make prefix="${pkgdir}/usr" install
install -vDm 644 *.desktop -t "${pkgdir}/usr/share/applications/"
install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
# docs
install -vDm 644 {{HISTORY,README}.Snd,NEWS} \
-t "${pkgdir}/usr/share/doc/${pkgname}/"
install -vDm 644 *.html -t "${pkgdir}/usr/share/doc/${pkgname}/html"
install -vDm 644 pix/*.png -t "${pkgdir}/usr/share/doc/${pkgname}/html/pix"
}
# vim:set ts=2 sw=2 et: