summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5f14e6e3379f750859c91eac23c39e914391629 (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
# Maintainer:  Gustavo Alvarez <sl1pkn07@gmail.com>

_plug=decomb
pkgname=avxsynth-plugin-decomb
pkgver=5.2.3
pkgrel=3
pkgdesc="Plugin for Avxsynth: ${_plug}"
arch=('x86_64')
url='https://web.archive.org/web/20130724044827/http://mujintou.org.uk/avxsynth'
license=('GPL')
depends=('avxsynth-git')
makedepends=('git'
             'yasm'
             'cmake'
             )
source=("decomb.zip::https://www.dropbox.com/s/orv7x3qmfa8qwuv/decomb.zip?dl=0")
sha256sums=('3c8efb8ea8c831c67c9af8ce9ccc7a0c18416ac75b1374181ced0708a68c36ba')
provides=("avxsynth-plugin-${_plug}")
conflicts=("avxsynth-plugin-${_plug}")

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../decomb \
  -DCMAKE_INSTALL_PREFIX=/usr/lib/avxsynth \
  -DCMAKE_ASM_NASM_COMPILER=yasm

  make
}

package(){
  install -Dm775 build/libdecomb.so "${pkgdir}/usr/lib/avxsynth/libdecomb.so"
  install -Dm664 "${_plug}/doc/DecombFAQ.html" "${pkgdir}/usr/share/doc/avxsynth/plugins/${_plug}/DecombFAQ.html"
  install -Dm664 "${_plug}/doc/DecombReferenceManual.html" "${pkgdir}/usr/share/doc/avxsynth/plugins/${_plug}/DecombReferenceManual.html"
  install -Dm664 "${_plug}/doc/DecombTutorial.html" "${pkgdir}/usr/share/doc/avxsynth/plugins/${_plug}/DecombTutorial.html"
}