[arch-commits] Commit in lib32-fluidsynth/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Tue Apr 23 09:00:52 UTC 2019
Date: Tuesday, April 23, 2019 @ 09:00:52
Author: dvzrv
Revision: 453039
upgpkg: lib32-fluidsynth 2.0.5-1
Upgrading to 2.0.5. Using tarball as source. Adding check(). Minor fixes.
Modified:
lib32-fluidsynth/trunk/PKGBUILD
----------+
PKGBUILD | 30 +++++++++++++++++-------------
1 file changed, 17 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-04-23 08:43:10 UTC (rev 453038)
+++ PKGBUILD 2019-04-23 09:00:52 UTC (rev 453039)
@@ -6,12 +6,13 @@
# Contributor: damir <damir at archlinux.org>
pkgname=lib32-fluidsynth
-pkgver=2.0.4
+_name=fluidsynth
+pkgver=2.0.5
pkgrel=1
pkgdesc='A real-time software synthesizer based on the SoundFont 2 specifications'
-arch=(x86_64)
-url=http://www.fluidsynth.org/
-license=(LGPL)
+arch=('x86_64')
+url="https://www.fluidsynth.org/"
+license=('LGPL')
depends=(
fluidsynth
lib32-alsa-lib
@@ -26,27 +27,25 @@
)
makedepends=(
cmake
- git
lib32-ladspa
)
optdepends=('pulseaudio: PulseAudio sound support')
-source=(git+https://github.com/FluidSynth/fluidsynth.git#tag=v${pkgver})
-sha256sums=(SKIP)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/${_name}/${_name}/archive/v${pkgver}.tar.gz")
+sha256sums=('69b244512883491e7e66b4d0151c61a0d6d867d4d2828c732563be0f78abcc51')
prepare() {
- if [[ -d build ]]; then
- rm -rf build
- fi
+ cd "${_name}-${pkgver}"
+ # out-of-tree build
mkdir build
}
build() {
- cd build
+ cd "${_name}-${pkgver}/build"
export CC='gcc -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
- cmake ../fluidsynth \
+ cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DFLUID_DAEMON_ENV_FILE=/etc/conf.d/fluidsynth \
@@ -57,8 +56,13 @@
make
}
+check() {
+ cd "${_name}-${pkgver}/build"
+ make -k check
+}
+
package() {
- cd build
+ cd "${_name}-${pkgver}/build"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
More information about the arch-commits
mailing list