summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0393a36ca89d233acfdef86a6d380d1510ef5467 (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
# Maintainer: silverhikari
pkgname=sinsy-isengaara-git
_pkgname=sinsy
pkgver=0.9.6rc0.r3.g036c33a
pkgrel=4
pkgdesc="fork of sinsy made to use with qtau"
arch=('x86_64')
url="https://notabug.org/isengaara/sinsy"
license=('BSD')
depends=('hts-engine-api-git' 'sekai-git' 'boost')
makedepends=('git' 'cmake')
provides=("${pkgname%-VCS}")
conflicts=("${pkgname%-VCS}")
source=('git+https://notabug.org/isengaara/sinsy' 'utaudb.patch')
md5sums=('SKIP' 'SKIP')
pkgver() {
	cd "$srcdir/${_pkgname}"
    git describe --long --tags | sed 's|^upstream/||;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    cd "$srcdir/${_pkgname}"
    patch -p1 < "$srcdir/utaudb.patch"
}

build() {
	cmake -B build -S "sinsy" \
        -DCMAKE_BUILD_TYPE='Release' \
        -DCMAKE_INSTALL_PREFIX='/usr' \
        -Wno-dev -DBUILD_SHARED_LIBS=ON
    make -C build
}

package() {
    cd "$srcdir/${_pkgname}/src"
    install -Dm755 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	cd "${srcdir}/build"
	make DESTDIR="$pkgdir/" install
}