PKGBUILDs/community/snd/PKGBUILD

71 lines
2.6 KiB
Bash
Raw Normal View History

2019-11-19 02:35:38 +00:00
# Maintainer: David Runge <dvzrv@archlinux.org>
2018-03-23 18:08:24 +00:00
# Contributor: Ray Rashif <schiv@archlinux.org>
2011-12-05 19:01:04 +00:00
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - build with pulseaudio as sound server, not jack (x86 asm)
pkgname=snd
2020-09-05 22:21:55 +00:00
pkgver=20.7
2019-09-02 19:00:23 +00:00
pkgrel=1
2011-12-05 19:01:04 +00:00
pkgdesc="An advanced sound editor"
2018-01-24 13:53:37 +00:00
arch=('x86_64')
2018-02-19 16:19:04 +00:00
url="https://ccrma.stanford.edu/software/snd/"
2014-01-02 09:58:46 +00:00
license=('custom:free')
2018-06-05 18:02:52 +00:00
groups=('pro-audio')
2020-03-13 00:39:05 +00:00
depends=('cairo' 'gdk-pixbuf2' 'glibc' 'gmp' 'gsl' 'libmpc' 'mpfr' 'ruby' 'pulseaudio')
2020-02-06 14:26:32 +00:00
# TODO: maybe replace mpg123 with mpg321
2020-03-13 00:39:05 +00:00
makedepends=('alsa-lib' 'fftw' 'flac' 'gendesk' 'glib2' 'glu' 'gtk3'
'ladspa' 'libpulse' 'libsamplerate' 'libxpm' 'mpg123' 'openmotif' 'pango'
'speex' 'timidity++' 'vorbis-tools' 'wavpack')
2018-02-19 16:19:04 +00:00
optdepends=('wavpack: For wav support'
'flac: For flac support'
'speex: For speex support'
'mpg123: For MPEG support'
2020-03-13 00:39:05 +00:00
'pulseaudio: For pulseaudio support'
2018-02-19 16:19:04 +00:00
'timidity++: For MIDI to WAVE support'
'vorbis-tools: For OGG support')
source=("https://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
2020-09-05 22:21:55 +00:00
sha512sums=('bc45a6357588759bd7b19152e2ae621e8f084df916a1b1cc890a1d27c1394c05b8a1083f7e0dd2258be4b36cef32a7491dca9e1546953ef2fe579b25d5e07eb9')
b2sums=('0f747bf1ba1e5915e2eab40d8bf5228a41ae22f946178c0730571cbc4a13ed06a29635149c584dc91ce544d8ea4e17a1f51a55e2f363cd65a631de4169a183d9')
2019-07-30 18:13:03 +00:00
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"
}
2011-12-05 19:01:04 +00:00
build() {
2018-02-19 16:19:04 +00:00
cd "${pkgname}-${pkgver}"
2011-12-05 19:01:04 +00:00
./configure --prefix=/usr \
--with-alsa \
2018-02-19 16:19:04 +00:00
--with-gmp \
2012-08-26 16:14:51 +00:00
--with-gtk \
--with-ladspa \
2018-02-19 16:19:04 +00:00
--with-pulseaudio \
--with-ruby
2011-12-05 19:01:04 +00:00
make
}
package() {
2020-03-13 00:39:05 +00:00
depends+=('libasound.so' 'libfftw3.so' 'libgdk-3.so' 'libgio-2.0.so'
'libglib-2.0.so' 'libgobject-2.0.so' 'libgtk-3.so'
'libpangocairo-1.0.so' 'libpango-1.0.so' 'libsamplerate.so')
2018-02-19 16:19:04 +00:00
cd "${pkgname}-${pkgver}"
make prefix="${pkgdir}/usr" install
2019-07-30 18:13:03 +00:00
install -vDm 644 *.desktop -t "${pkgdir}/usr/share/applications/"
install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
2018-11-26 19:40:26 +00:00
# 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"
2011-12-05 19:01:04 +00:00
}
# vim:set ts=2 sw=2 et: