1 # Contributor: Tom < reztho at archlinux dot us >
4 # The license of this program must be accepted before downloading the original baudline .tar.gz,
5 # so be sure to accept it before doing anything if you really want to install this
6 # program. The license is in this URL: http://www.baudline.com/download.html .
8 # And if you see the 'About' screen of the program, you can see than any kind of
9 # distribution of the program is prohibited, so the first contributor of this PKGBUILD
10 # (Tom < reztho at archlinux dot us >) contacted with Erik Olson from SigBlips.com (the author
11 # of the program) and Erik granted the whole Archlinux community to use this PKGBUILD
12 # for making a binary Archlinux package so you can install the program system-wide. But the
13 # distribution of the binary Archlinux package made with this PKGBUILD is prohibited, so it
14 # isn't possible to upload it to the binary Archlinux repositories or use it as part of Archlinux
15 # installation or any of its derivatives.
21 pkgdesc="Time-frequency browser designed for scientific visualization of the spectral domain."
22 arch=('i686' 'x86_64')
23 url="http://www.baudline.com/"
25 depends=('libxp' 'jack' 'libxmu' 'libxxf86vm' 'xorg-fonts-75dpi' 'xorg-fonts-100dpi')
26 makedepends=('imagemagick')
27 optdepends=('gzip' 'bzip2' 'flac' 'sox' 'mpg123' 'vorbis-tools')
29 install=baudline-bin.install
30 source=("http://www.baudline.com/${pkgname/-bin/}_${pkgver}_linux_${CARCH}.tar.gz"
31 "${pkgname/-bin/}.desktop"
32 "${pkgname/-bin/}_jack.desktop")
34 md5sums=('a400669fe11e5189e5d9d9db18dae70d'
35 'd334c058230811a402104f75afcfaeed'
36 '2c1ff5a60782815167bb43e735305e0e')
38 [ "${CARCH}" == "x86_64" ] && \
39 md5sums=('8ca7a48c17d4826f2a634ffe5137811e'
40 'd334c058230811a402104f75afcfaeed'
41 '2c1ff5a60782815167bb43e735305e0e')
48 if [ "${_arch}" == "i686" ]; then
52 cd ${srcdir}/${pkgname/-bin/}_${_verpkg}_linux_${_arch}
55 mkdir -p ${pkgdir}/usr/share/baudline ${pkgdir}/usr/bin/
56 cp -a ./* ${pkgdir}/usr/share/baudline/
57 mv ${pkgdir}/usr/share/baudline/baudline ${pkgdir}/usr/bin/
58 mv ${pkgdir}/usr/share/baudline/baudline_jack ${pkgdir}/usr/bin/
61 chmod 755 ${pkgdir}/usr/bin/*
63 # .desktop file and icon
64 mkdir -p ${pkgdir}/usr/share/pixmaps
65 /usr/bin/convert ${srcdir}/${pkgname/-bin/}_${_verpkg}_linux_${_arch}/icons/spectro.gif ${srcdir}/${pkgname/-bin/}_${_verpkg}_linux_${_arch}/icons/baudline.png || return 1
66 /usr/bin/convert ${srcdir}/${pkgname/-bin/}_${_verpkg}_linux_${_arch}/icons/piano_keys.gif ${srcdir}/${pkgname/-bin/}_${_verpkg}_linux_${_arch}/icons/baudline_jack.png || return 1
67 install -m 644 ${srcdir}/${pkgname/-bin/}_${_verpkg}_linux_${_arch}/icons/baudline.png ${pkgdir}/usr/share/pixmaps/ || return 1
68 install -m 644 ${srcdir}/${pkgname/-bin/}_${_verpkg}_linux_${_arch}/icons/baudline_jack.png ${pkgdir}/usr/share/pixmaps/baudline_jack.png || return 1
69 mkdir -p ${pkgdir}/usr/share/applications
70 install -m 644 ${srcdir}/${pkgname/-bin/}.desktop ${pkgdir}/usr/share/applications || return 1
71 install -m 644 ${srcdir}/${pkgname/-bin/}_jack.desktop ${pkgdir}/usr/share/applications || return 1
74 mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}/
75 install -m 644 ${pkgdir}/usr/share/baudline/README_unix.txt ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1