summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e24dcab2222f893ea6ffaf489bab375a5ad9bf92 (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: timescam <rex.ky.ng@gmail.com>

pkgname=id3v2lib
_pkgname="id3v2lib"
pkgver=r50.4eb49a0
pkgrel=1
pkgdesc="Library written in C to read and edit id3 tags from mp3 files."
arch=("any")
url="https://github.com/larsbs/id3v2lib"
license=("BSD")
makedepends=("cmake")
provides=('id3v2lib')
conflicts=('id3v2lib-memleak-patch')
source=("$_pkgname::git+https://github.com/larsbs/id3v2lib.git")
sha512sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

prepare(){
  cd "$srcdir/$_pkgname"
  mkdir -p build
}

build() {
  cd "$srcdir/$_pkgname/build"
  cmake \
  ../
  make
}

package() {
  cd "$_pkgname"
  install -d "$pkgdir/usr/include"
  cp -r "include/$_pkgname" "$pkgdir/usr/include"
  install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/$_pkgname"
}