summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18a5895587febf2c2f50547e39972577e4fc3088 (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.1
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")
sha256sums=('a5a88f8f40c3654e902066e4aba8e6c4e2c89fcf64ca823d81db80c3dad41a80')

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: