PKGBUILDs/community/libopenshot-audio/PKGBUILD

46 lines
1.5 KiB
Bash
Raw Normal View History

2019-11-15 01:40:54 +00:00
# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Martin Wimpress <code@flexion.org>
2019-09-15 00:38:39 +00:00
# Contributor: Foster McLane <fkmclane@gmail.com>
# Contributor: Jonathan Thomas <jonathan@openshot.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to link v5/v6 with libatomic
pkgname=libopenshot-audio
pkgver=0.1.8
2019-11-15 01:40:54 +00:00
pkgrel=3
2019-09-15 00:38:39 +00:00
pkgdesc="A high-quality audio editing and playback library used by libopenshot."
arch=('x86_64')
url="https://openshot.org/"
license=('GPL3')
2019-11-15 01:40:54 +00:00
depends=('alsa-lib' 'gcc-libs' 'glibc' 'zlib')
makedepends=('cmake' 'doxygen' 'freetype2' 'libx11')
provides=('libopenshot-audio.so')
2019-09-15 00:38:39 +00:00
source=("$pkgname-$pkgver.tar.gz::https://github.com/OpenShot/libopenshot-audio/archive/v$pkgver.tar.gz"
2019-11-15 01:40:54 +00:00
"$pkgname-cleanup-juce.patch::https://patch-diff.githubusercontent.com/raw/OpenShot/libopenshot-audio/pull/39.patch"
2019-09-15 00:38:39 +00:00
'atomic.patch')
sha256sums=('384d0ef39c78f16d77048de3c96152321724084f978dc622675dd6bb16e15e19'
'ae784a96730f7cf09ba7bf29d06704ba6a0eca662d242d786b0a86a4343e9dc9'
'f066a57428a6239af4cde7a81a6dc579cc85062f4877def11b0650673f34eb6f')
prepare() {
2019-11-15 01:40:54 +00:00
cd "${pkgname}-${pkgver}"
patch -Np1 -i "../$pkgname-cleanup-juce.patch"
mkdir -vp build
if [[ $CARCH == "armv6h" || $CARCH == "arm" ]]; then
patch -p0 -i ../atomic.patch
fi
2019-09-15 00:38:39 +00:00
}
build() {
2019-11-15 01:40:54 +00:00
cd "${pkgname}-${pkgver}"
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-B build
make -C build
2019-09-15 00:38:39 +00:00
}
package() {
2019-11-15 01:40:54 +00:00
cd "${pkgname}-${pkgver}"
make -C build DESTDIR="${pkgdir}" install
2019-09-15 00:38:39 +00:00
}