PKGBUILDs/community/libopenshot-audio/PKGBUILD

45 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
2020-03-04 13:18:58 +00:00
pkgver=0.2.0
2020-02-11 13:43:47 +00:00
pkgrel=1
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')
2020-02-11 13:43:47 +00:00
depends=('gcc-libs' 'glibc' 'zlib')
makedepends=('alsa-lib' 'cmake' 'doxygen' 'freetype2' 'libx11')
2019-11-15 01:40:54 +00:00
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"
2020-02-11 13:43:47 +00:00
atomic.patch)
2020-03-04 13:18:58 +00:00
sha512sums=('c014a619f32283a8482e0df9224785610a9563073fbd98378367f28f713afa1dc9873d212a40352d3c96040004344f16084e5fe30e4cf64c57309f96e66068c1'
2020-02-11 13:43:47 +00:00
'5b527fc2406342bff8d29a2736226ce214dbf6ecf90a0e90e424ff68edf535d5eefcbe720201af3876c2c0b86eda1c8749c52984d3996d471d80ecabafad39e9')
2019-09-15 00:38:39 +00:00
prepare() {
2019-11-15 01:40:54 +00:00
cd "${pkgname}-${pkgver}"
if [[ $CARCH == "armv6h" || $CARCH == "arm" ]]; then
2020-02-11 13:43:47 +00:00
patch -p1 -i ../atomic.patch
2019-11-15 01:40:54 +00:00
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 \
2020-02-11 13:43:47 +00:00
-B build \
-S .
make VERBOSE=1 -C build
2019-09-15 00:38:39 +00:00
}
package() {
2020-02-11 13:43:47 +00:00
depends+=('libasound.so')
2019-11-15 01:40:54 +00:00
cd "${pkgname}-${pkgver}"
2020-02-11 13:43:47 +00:00
make VERBOSE=1 DESTDIR="${pkgdir}" install -C build
install -vDm 644 {AUTHORS,README.md} -t "${pkgdir}/usr/share/doc/${pkgname}"
2019-09-15 00:38:39 +00:00
}