summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af58d1ad105e2bd44a0e8f99b5ec97cbc597575b (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
# Maintainer:
# Contributor: sekret

## useful links:
# https://sourceforge.net/projects/lossywav/
# https://github.com/MoSal/lossywav-for-posix

_pkgname="lossywav"
pkgname="$_pkgname-git"
pkgver=1.4.2p.r21.g5c04ba3
pkgrel=1
pkgdesc="lossy audio pre-processor to improve flac encoding efficiency"
url="https://github.com/xiota/lossywav-for-posix"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
license=('GPL-3.0-or-later')

depends=(
  'fftw'
)
makedepends=(
  'git'
  'meson'
  'ninja'
)

provides=("$_pkgname")
conflicts=("$_pkgname")

_pkgsrc="$_pkgname"
source=("$_pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgsrc"
  git describe --tag --long --abbrev=7 \
    | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  arch-meson build "$_pkgsrc"
  meson compile -C build
}

package() {
  meson install -C build --destdir "$pkgdir"
}