summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8084280336c317838fd96f7add3733db4fcc74e5 (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
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Eduardo Sánchez Muñoz

pkgname=dsf2flac-git
pkgver=r31.6b109cd
pkgrel=2
pkgdesc="Tool for converting DSF to FLAC files."
arch=(x86_64 i686 pentium4 arm armv6h armv7h aarch64)
url="https://github.com/hank/dsf2flac"
license=(GPL2)
depends=(glibc gcc-libs flac boost-libs taglib id3lib)
makedepends=(git boost cmake)
source=("git+https://github.com/hank/dsf2flac.git")
sha256sums=('SKIP')

pkgver() {
  cd "dsf2flac"
  echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

prepare() {
  cd "dsf2flac"
  ./autogen.sh
}

build() {
  cd "$srcdir/dsf2flac"
  export LIBS=-lboost_timer
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/dsf2flac"
  make install DESTDIR="$pkgdir"
}