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

pkgname=nut-multimedia-git
pkgver=r690.640bf64
pkgrel=1
pkgdesc="Free multimedia container format. (Git Version)"
arch=('x86_64')
url='http://wiki.multimedia.cx/index.php?title=NUT'
license=('GPL')
depends=('glibc')
makedepends=('git')
conflicts=('nut-multimedia'
           'libnut-git'
           )
provides=('nut-multimedia'
          'libnut'
          )
source=('git+https://git.ffmpeg.org/nut.git')
sha256sums=('SKIP')

pkgver() {
  cd nut
  #echo "$(git describe --long --tags | tr - .)"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  CFLAGS+=" -fPIC" make -C nut/src/trunk PREFIX=/usr libnut/libnut.so
  make -C nut/src/trunk PREFIX=/usr nututils
}

package() {
  make -C nut/src/trunk PREFIX=/usr DESTDIR="${pkgdir}" install-libnut-shared
  make -C nut/src/trunk PREFIX=/usr DESTDIR="${pkgdir}" install-nututils
}