summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 72db39bc9409026425ce894268262bf5e5fd3613 (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
# Maintainer: Peter Lamby <peterlamby@web.de>
pkgname=deadbeef-opus-git
_gitname=deadbeef-opus
pkgver=80.330e3a3
pkgrel=1
pkgdesc="opus plugin for the DeaDBeeF music player"
arch=('i686' 'x86_64')
url="https://bitbucket.org/Lithopsian/deadbeef-opus"
license=('GPL2')
provides=(deadbeef-opus)
conflicts=(deadbeef-opus)
depends=('deadbeef' 'opusfile')
source=('git+https://bitbucket.org/Lithopsian/deadbeef-opus.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$_gitname"
	echo "$(git rev-list --count HEAD).$(git describe --always)"
}


build() {
  cd "${srcdir}/$_gitname"
  sed -i '1s/^/#define DDB_DECODER_HINT_NEED_BITRATE 0x2\n/' opus.c
  make
}

package() {
  cd "${srcdir}/$_gitname"

  install -Dm 755 opus.so "$pkgdir/usr/lib/deadbeef/opus.so"
}