summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf11914ee7b44360e412430760f5668d3c8da3b6 (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: Vincent Grande <shoober420@gmail.com>
# Contributor: Kamran Mackey <kamranm1200@gmail.com>

pkgname=('flac-nodocs-git')
pkgver=v1.3.3.ce6dd6b
pkgrel=1
arch=('x86_64' 'aarch64')
url="https://xiph.org/flac/"
license=('BSD' 'GPL')
depends=('gcc-libs' 'libogg')
makedepends=('nasm')
#options=('!makeflags')
source=(git://github.com/xiph/flac.git)
sha1sums=('SKIP')
_gitname=flac

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

}

build() {
  cd "$_gitname"
  ./autogen.sh
  ./configure --prefix=/usr --disable-doxygen-docs
  make
}

package_flac-nodocs-git() {
  pkgdesc="Free Lossless Audio Codec (git version)"
#  options=('!docs')
  conflicts=('flac')
  provides=('flac' 'libFLAC.so' 'libFLAC++.so')

  cd "$_gitname"
  make DESTDIR="${pkgdir}" install
  install -D -m644 COPYING.Xiph "${pkgdir}/usr/share/licenses/$_gitname/LICENSE"
}