summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 500c4eb454cda4ed05fe8a295ef183df367df593 (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
# Maintainer: Milk Brewster <milk on freenode>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>

_pkgname=samplecat
pkgname=$_pkgname-git
pkgver=0.3.3.r0.gccec9d4
pkgrel=1
pkgdesc="A program for cataloguing and auditioning audio samples."
arch=(x86_64)
url="http://ayyi.github.io/samplecat"
license=(GPL-3.0-only)
depends=(
    dbus-glib
    ffmpeg
    fftw
    graphene
    gtk2
    jack
    libsndfile
    libyaml
    mariadb-libs
    sqlite
)
makedepends=(
    git
    glib2-devel
    ladspa
    python
)
provides=($_pkgname)
conflicts=($_pkgname)
source=('git+https://github.com/ayyi/samplecat.git'
        'git+https://github.com/ayyi/libwaveform.git')
sha256sums=('SKIP'
            'SKIP')


pkgver() {
  cd $_pkgname
  ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

prepare() {
  cd $_pkgname
  git submodule init
  git config submodule.waveform.url "${srcdir}/libwaveform"
  git -c protocol.file.allow=always submodule update
  cd lib/waveform
  git checkout master
}

build() {
  cd $_pkgname
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd $_pkgname
  make DESTDIR="$pkgdir/" install
  # Layout files not used (yet)?
  rm -rf "$pkgdir"/usr/etc
}