summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 42a5fa7d09fc1daa390f8cc289325d7cc965512f (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
# Maintainer: Storm Dragon <stormdragon2976@gmail.com>
# Contributer: Christopher Pahl <sahib@online.de>
# glyr PKGBUILD for ArchLinux
pkgname=glyr-git
pkgver=1.0.8
pkgrel=1
pkgdesc="A music metadata searchengine utility and library written in C"
arch=('armv7h' 'i686' 'x86_64')
depends=(glib2 curl sqlite3)
provides=('glyr')
conflicts=('glyr')
makedepends=('git' 'cmake')
license=('GPL3')
url="https://github.com/sahib/glyr"
source=('git+https://github.com/sahib/glyr.git#branch=master')
md5sums=('SKIP')

build() {
    cd "$srcdir/glyr"
    cmake . -DCMAKE_INSTALL_PREFIX=/usr
    make glyrc -j4 || return 1
}

package() {
  cd "$srcdir/glyr"
  make DESTDIR=$pkgdir install || return 1
}

pkgver() {
    cd "$srcdir/glyr"
    git tag --sort="-v:refname" | grep '^[0-9]' | head -1
}