summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3490af851805d346420c30f9064d67027818558e (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
# Maintainer: Hildigerr Vergaray <Maintainer at YmirSystems dot com>

pkgname=mtag-git
pkgver=0.1.3
pkgrel=1
pkgdesc="Music file tag manipulator"
arch=('i686' 'x86_64')
url="https://github.com/hildigerr/mtag"
license=('PerlArtistic')
depends=('taglib')
makedepends=('git')
provides=("${pkgname%-git}")

source=(
    "${pkgname%-git}::git+${url}"
)

sha256sums=(
  'SKIP'
)

pkgver() {
  cd "${srcdir}/${pkgname%-git}"
  grep version mtag.cpp | head -n 1 | cut -d\" -f 2
}

build() {
  cd "${srcdir}/${pkgname%-git}"
  make
}

package() {
  cd "${srcdir}/${pkgname%-git}"
  install -Dm755 "${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}"
  install -Dm644 mtag.1 "${pkgdir}/usr/share/man/man1/mtag.1"
}