summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb8953a29c71214c16720c89d246faead0c04b26 (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.38.r15.g14b165e
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')
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"
}