PKGBUILDs/community/libopenshot-audio/PKGBUILD

39 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>
2021-09-15 21:51:03 +00:00
# - explicitly link v5/v6 with libatomic
2019-09-15 00:38:39 +00:00
pkgname=libopenshot-audio
2021-09-15 21:51:03 +00:00
pkgver=0.2.2
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')
2021-09-15 21:51:03 +00:00
makedepends=('alsa-lib' 'cmake' 'doxygen' 'freetype2' 'libx11' 'python')
2019-11-15 01:40:54 +00:00
provides=('libopenshot-audio.so')
2021-09-15 21:51:03 +00:00
source=("$pkgname-$pkgver.tar.gz::https://github.com/OpenShot/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('9960c6225dd9b843d18134e851761bf12861220a2c63970055bc73d554725e56abd6d35339f7490b672faaf0699f58e3701ff8a966ab07af3264325a9d0dc472')
b2sums=('fcf242bdd678d2e79e2775f3aff7507520a4e8b9ddc7696e1506beca0c1f8e0687d66dfa35a31748e2e622def6e1c22c160e9424c1c27527854ebcafc24413ca')
2019-09-15 00:38:39 +00:00
build() {
2019-11-15 01:40:54 +00:00
cd "${pkgname}-${pkgver}"
2021-09-15 21:51:03 +00:00
[[ $CARCH == "armv6h" || $CARCH == "arm" ]] && echo "target_link_libraries(openshot-audio PUBLIC atomic)" >> CMakeLists.txt
2019-11-15 01:40:54 +00:00
cmake -DCMAKE_INSTALL_PREFIX=/usr \
2021-09-15 21:51:03 +00:00
-Wno-dev \
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
}