summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d736fd7b6cd2eb70d80f31d9e116aa0a589d58ec (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
# Maintainer: David Adler <d dot adler at posteo dot de>
pkgname=tapeutape
pkgver=0.1.1
pkgrel=9
pkgdesc="MIDI controllable sampler"
arch=('x86_64')
url="https://web.archive.org/web/20200116093528/http://hitmuri.net/index.php/software/tapeutape"
license=('GPL')
depends=('fltk' 'jack')
makedepends=('scons')
source=(https://web.archive.org/web/20200116093528/http://www.hitmuri.net/uploads/Software/tapeutape-0.1.1.tar.gz sconstruct_tapeutape.diff)
md5sums=('ac1168e2b93a2ae1a18d583f904c9dd1'
         '5f3d5f95cf666c5d1144da1887fd4362')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"

  # patch SConstruct
  patch -i "$srcdir/sconstruct_tapeutape.diff" SConstruct

  # fix bug exposed by gcc 4.7 (undeclared getcwd)
  sed -i 's/#include "sample.h"/&\n#include <unistd.h>/' src/audio/sample.cpp

  # remove object files
  rm src/*/*.o
}

build() { 
  cd "$srcdir/$pkgname-$pkgver"
  scons lash=0
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  scons DESTDIR="$pkgdir" PREFIX=/usr install
}