summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dafb62c2cc88bc195179e6509f625a781af226d4 (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
40
41
42
43
# Maintainer: Karol "Kenji Takahashi" Wo┼║niak <kenji.sx>
# Contributor: Rolinh <robinDOThahlingATgw-computingDOTnet>

pkgname=tagutil
pkgver=3.0.3
pkgrel=1
pkgdesc="scriptable music files tags tool and editor"
arch=('i686' 'x86_64')
url="https://github.com/kAworu/tagutil"
license=('BSD')
depends=(
    'libyaml'
    'taglib'
    'flac'
    'libvorbis'
    'jansson'
)
makedepends=(
    'cmake'
)
options=(!emptydirs)
source=("${url}/archive/v${pkgver}.tar.gz")
md5sums=('53c27fe9e91d28143b8a5e056480fbe0')

build() {
    cd "${pkgname}-${pkgver}"

    sed -i 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' src/CMakeLists.txt

    mkdir build
    cd build
    cmake ../src -DPREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE
    make
}

package() {
    cd "${pkgname}-${pkgver}/build"

    make DESTDIR="${pkgdir}" install
    install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/"${pkgname}"/LICENSE"
}

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