summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 17c8a831e662b2bec81669e1a9c0d7e8c4ce887f (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libzen-git
pkgver=0.4.41.r0.g894980d
pkgrel=1
pkgdesc="Shared library for libmediainfo"
arch=('i686' 'x86_64')
url="https://github.com/MediaArea/ZenLib"
license=('BSD')
depends=('gcc-libs')
makedepends=('git')
provides=("libzen=$pkgver")
conflicts=('libzen')
source=("git+https://github.com/MediaArea/ZenLib.git")
sha256sums=('SKIP')


pkgver() {
  cd "ZenLib"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "ZenLib/Project/GNU/Library"

  ./autogen.sh
  ./configure \
    --prefix="/usr"
  make
}

package() {
  cd "ZenLib"

  make -C "Project/GNU/Library" DESTDIR="$pkgdir" install
  install -Dm644 "License.txt" -t "$pkgdir/usr/share/licenses/libzen"
}