summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ebc19ae2933bb82597977fd9c620f703c630b815 (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
# Maintainer: Jose Riha <jose1711 gmail com>

pkgname=wxmp3val-git
_pkgname="${pkgname%-git}"
pkgver=r219.0016161
pkgrel=1
pkgdesc="a free front-end for the MP3val"
url="https://github.com/cfgnunes/wxmp3val"
depends=(mp3val wxwidgets-gtk3)
makedepends=(git cmake)
license=('GPL')
arch=('x86_64')
source=("${pkgname}"::'git+https://github.com/cfgnunes/wxmp3val.git')
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${pkgname}"
  [ -d build ] && rm -r build
  mkdir build
  cd build
  cmake ..
  cmake --build .
}

package() {
  cd ${srcdir}/${pkgname}/build
  cmake -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" -P cmake_install.cmake 
  mv "${pkgdir}/usr/bin/wxmp3val" "${pkgdir}/usr/share/${_pkgname}/wxmp3val"
  ln -s "/usr/share/${_pkgname}/wxmp3val" "${pkgdir}/usr/bin/wxmp3val"
}

# vim:set ts=2 sw=2 et: