summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2aa041d7b18014228acd902d902948debc994361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#!/bin/bash
### -- Above shabeng-line for automatic syntax-highlighting in some editors. -- ###

# Maintainer:  dreieck
# Contributor: speps <speps at aur dot archlinux dot org>


_pkgname='rezound'
pkgname="${_pkgname}-git"
#_pkgver='latest'
# pkgver="${_pkgver}"
pkgver=0.13.2beta.r0.g61285e5
# pkgver='0.13.1beta.r2022M.date20131229'
pkgrel=1
pkgdesc="A graphical audio file editor, not bloated, simple to use. Supports LADSPA-plugins."
arch=('i686' 'x86_64')
url='http://rezound.sourceforge.net/'



license=('GPL')
depends=(
         'libpulse'
         'portaudio'
         'fftw'
         'fox'
         'jack'
         'audiofile'
         'desktop-file-utils'
         'libvorbis'
         'soundtouch'
         'lame'
         'flac'
        )
makedepends=(
             'git'
	     'boost'
             'bison'
             'flex'
            )
optdepends=(
            'cdrdao: For burn-to-CD-feature.'
           )
provides=(
          "${_pkgname}=${pkgver}"
         )
replaces=(
          "${_pkgname}<=${pkgver}"
          "rezound-svn"
         )
conflicts=(
           "$_pkgname"
          )
install="${_pkgname}.install"
source=(
        "git+https://github.com/Sound-Linux-More/rezound.git"
        "${_pkgname}.png"
        "${_pkgname}.install"
	"rezound-jack.desktop"
        "website_rendered.txt"
        "website.url"
       )
sha256sums=(
            'SKIP'
            '5a33ebae3f38bf9b824c262696ea67febc66ee2ef68fa22e976409041a08a489'
            '9fe12f1bc573f5d431fcc8f9ca3ed17fc1e1d30248ae3b58209fc53084ae0a4e'
	    'SKIP'
            '8e164d279e6ebd58b1ca81bc970e6019719e6f5ee8b09cc3aa87fa7122f67867'
            'f5e97e9ae55241a0b060f2e0162a9189700f37a1de8e8bb731dfc6ece5d03f88'
           )


pkgver() {
  cd "$_pkgname"
#  git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
printf "%s" "$(git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"

}

build() {
  msg "Starting build..."
  cd "${srcdir}/${_pkgname}/"

  # doc dir fix
  sed -i "/pkgdocdir/s/prefix/datarootdir/" config/am_include.mk

  ./bootstrap
  ./configure \
    --prefix=/usr \
    --enable-shared \
    --disable-static \
    --enable-oss \
    --enable-alsa \
    --enable-portaudio \
    --enable-jack \
    --enable-pulse \
    --enable-ladspa \
    --disable-rpath \
    --enable-nls
  make
}

package() {
  cd "${srcdir}/${_pkgname}/"
  make DESTDIR="${pkgdir}/" install


  ### icon
  
  install -Dm644 "${srcdir}/${_pkgname}.png" \
    "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"


  ### desktop files

  install -Dm644 packaging/generic_rpm/kde/x-rez.desktop \
    "${pkgdir}/usr/share/applications/x-rez.desktop"

  sed "s|\(Icon=/usr/share/\).*|\1pixmaps/${_pkgname}.png|" \
    packaging/generic_rpm/kde/${_pkgname}.desktop > \
    "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
  chmod 644 "${pkgdir}/usr/share/applications/${_pkgname}.desktop"

  cp $srcdir/rezound-jack.desktop "${pkgdir}/usr/share/applications/rezound-jack.desktop"
 chmod 644 "${pkgdir}/usr/share/applications/rezound-jack.desktop"


  ### man
  install -Dm644 packaging/debian/${_pkgname}.1 \
    "${pkgdir}/usr/share/man/man1/${_pkgname}.1"


  ### website

  install -Dm644 "${srcdir}/website_rendered.txt" \
    "${pkgdir}/usr/share/doc/${_pkgname}/website/website_rendered.txt"

  install -Dm644 "${srcdir}/website.url" \
    "${pkgdir}/usr/share/doc/${_pkgname}/website/website.url"
}