summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96081e5ce18c916a105413ddfde2c3ed53d0b400 (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
# Maintainer: Doug Newgard <scimmia at archlinux dot info>
# Contributor: furester <furester at gmail.com>

_pkgname=lightmediascanner
pkgname=$_pkgname-git
pkgver=0.5.1.r18.gadfddb3
pkgrel=1
pkgdesc="Lightweight library to scan media - Development version"
arch=('i686' 'x86_64')
url="https://github.com/profusion/lightmediascanner"
license=('LGPL')
depends=('sqlite3' 'libmp4v2' 'ffmpeg' 'file')
makedepends=('git')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
source=("git://github.com/profusion/$_pkgname.git")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname

  git describe --tags --long | sed 's/^release_//;s/-/.r/;s/-/./g'
}

build() {
  cd $_pkgname

  export CFLAGS="$CFLAGS -fvisibility=hidden"

  ./autogen.sh \
    --prefix=/usr

  make
}

package() {
  cd $_pkgname

  make DESTDIR="$pkgdir" install

# install text files
  install -Dm644 -t "$pkgdir/usr/share/doc/$_pkgname/" AUTHORS NEWS README TODO
}