diff options
author | redtide | 2020-01-24 00:00:22 +0100 |
---|---|---|
committer | redtide | 2020-01-24 00:00:22 +0100 |
commit | 755332cffee8703a10eb5c065ad8474bd4ca9ba9 (patch) | |
tree | 00af5d21fdc319bf78a3d705011419d9ba84c8ab | |
parent | 4db45840f90f93eaed299952c96704e76804de9a (diff) | |
download | aur-755332cffee8703a10eb5c065ad8474bd4ca9ba9.tar.gz |
Update to new sfizz codebase
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 30 insertions, 29 deletions
@@ -1,16 +1,18 @@ pkgbase = sfizz-git - pkgdesc = Juce based SFZ format sampler - pkgver = r51.14bace7 + pkgdesc = SFZ library and LV2 plugin + pkgver = r801.8ab993b pkgrel = 1 - url = https://github.com/sfztools/sfizz + url = https://sfz.tools/sfizz arch = x86_64 - license = GPL3 + license = custom:BSD-2-Clause + license = custom:ISC makedepends = git - makedepends = juce + makedepends = cmake + depends = libsndfile provides = sfizz conflicts = sfizz - source = sfizz-git::git+https://github.com/sfztools/sfizz - md5sums = SKIP + source = sfizz-git::git+https://github.com/sfztools/sfizz#branch=develop + sha512sums = SKIP pkgname = sfizz-git @@ -1,35 +1,34 @@ # Maintainer: RedTide <redtid3@gmail.com> -pkgname=sfizz-git -pkgver=r51.14bace7 +_pkgname="sfizz" +pkgname="${_pkgname}-git" +pkgver=r801.8ab993b pkgrel=1 -pkgdesc="Juce based SFZ format sampler" -url="https://github.com/sfztools/sfizz" +pkgdesc="SFZ library and LV2 plugin" +url="https://sfz.tools/sfizz" arch=('x86_64') -license=('GPL3') -makedepends=('git' 'juce') +license=('custom:BSD-2-Clause' 'custom:ISC') +makedepends=('git' 'cmake') +depends=('libsndfile') provides=('sfizz') conflicts=('sfizz') -source=( - "$pkgname"::"git+https://github.com/sfztools/sfizz" -) -md5sums=( - 'SKIP' -) +source=("$pkgname"::"git+https://github.com/sfztools/sfizz#branch=develop") +sha512sums=('SKIP') pkgver() { - cd "$pkgname" + cd "${pkgname}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +prepare() { + cd "${srcdir}/${pkgname}" + git submodule update --init --recursive +} build() { - cd "$srcdir/${pkgname}/Builds/LinuxMakefile" - sed -i -e 's/$(HOME)/\/opt/' "./Makefile" - make INSTALL_DIR=$pkgdir + mkdir -p build + cd build + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" "${srcdir}/${pkgname}" + cmake --build . --target all } package() { - cd "$srcdir/${pkgname}" - install -Dm644 "${srcdir}/${pkgname}/resources/linux/sfizz.desktop" "${pkgdir}/usr/share/applications/sfizz.desktop" - install -Dm644 "${srcdir}/${pkgname}/resources/linux/sfizz.appdata.xml" "${pkgdir}/usr/share/metainfo/sfizz.appdata.xml" - install -Dm644 "${srcdir}/${pkgname}/resources/icons/icon_256px.png" "${pkgdir}/usr/share/pixmaps/sfizz.png" - install -Dm755 "${srcdir}/${pkgname}/Builds/LinuxMakefile/build/sfizz" "${pkgdir}/usr/bin/sfizz" - install -Dm644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/sfizz/LICENSE" + DESTDIR="${pkgdir}" cmake --build "${srcdir}/build" --target install + install -Dm644 "${srcdir}/${pkgname}/LICENSE.md" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" } |