summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b7de8bfe4ca344ff0fe1159a2aca3d9204bb6f28 (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
# Maintainer: Sander in 't Hout <sander@inthout.eu>

pkgname=atracdenc-git
_gitname=atracdenc
pkgver=r75.218e216
pkgrel=1
pkgdesc='Dirty implementation of ATRAC1, ATRAC3 encoder'
arch=('x86_64')
url=https://github.com/dcherednik/atracdenc
license=('LGPL2.1')
provides=('atracdenc')
depends=('libsndfile')
makedepends=('cmake' 'make' 'git')
source=("atracdenc::git+https://github.com/dcherednik/atracdenc")
md5sums=('SKIP')

pkgver() {
  cd "${_gitname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/${_gitname}/src"
  mkdir -p build
  cd build
  cmake ../
  make
}

package() {
  cd "$srcdir/${_gitname}/src/build"
  install -Dt "$pkgdir"/usr/bin atracdenc 
}