summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f81f0926094abd9aee05a854c1db9d3e3f56a4d2 (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: beelzy
pkgname=rstmcpp-git
pkgver=1640486611.536830f
pkgrel=1
pkgdesc="A tool that converts wav files to .bcstm or .bcwav"
arch=('i686' 'x86_64')
url="https://gitlab.com/beelzy/rstmcpp"
license=('ISC')
sha256sums=('SKIP' 'SKIP')
depends=('gcc-libs')
makedepends=('git')

_gitroot='https://gitlab.com/beelzy/rstmcpp.git'
_gitname='rstmcpp'

source=("${_gitname}::git+${_gitroot}"
    "gc-dspadpcm-encode::git+https://github.com/jackoalan/gc-dspadpcm-encode.git")

prepare() {
    cd "$srcdir/$_gitname"
    git submodule--helper init
    git config submodule.gc-dspadpcm-encode.url "$srcdir/gc-dspadpcm-encode"
    git submodule--helper update
}

pkgver() {
    cd "$srcdir/$_gitname"
    git log --pretty=format:"%ad.%h" --date=format:"%s" -1
}

build() {
	cd "$srcdir/$_gitname"
    make BUILD_FLAGS="$LDFLAGS"
}

package() {
	install -D "$srcdir/$_gitname/rstmcpp" "$pkgdir/usr/bin/rstmcpp"
    install -Dm644 "$srcdir/$_gitname/LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}