[arch-commits] Commit in bs1770gain/repos (2 files)
Bruno Pagani
archange at archlinux.org
Tue Apr 24 12:57:07 UTC 2018
Date: Tuesday, April 24, 2018 @ 12:57:05
Author: archange
Revision: 317551
archrelease: copy trunk to community-staging-x86_64
Added:
bs1770gain/repos/community-staging-x86_64/
bs1770gain/repos/community-staging-x86_64/PKGBUILD
(from rev 317550, bs1770gain/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: bs1770gain/repos/community-staging-x86_64/PKGBUILD (from rev 317550, bs1770gain/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-04-24 12:57:05 UTC (rev 317551)
@@ -0,0 +1,33 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=bs1770gain
+pkgver=0.4.12
+pkgrel=2
+pkgdesc='A loudness scanner compliant with ITU-R BS.1770.'
+arch=('x86_64')
+url="http://bs1770gain.sourceforge.net"
+license=('GPL')
+depends=('ffmpeg' 'sox')
+source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('cafc5440cf4940939c675e98c8dbeb839f4965d60f74270a37d4ee70559b3a59')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ # ffmpeg 4.0 changes
+ sed -i "s:CODEC_CAP_VARIABLE_FRAME_SIZE:AV_CODEC_CAP_VARIABLE_FRAME_SIZE:g" libffsox-2/ffsox_frame.c
+ sed -i "s:CODEC_FLAG_GLOBAL_HEADER:AV_CODEC_FLAG_GLOBAL_HEADER:g" libffsox-2/ffsox_frame_writer.c
+ sed -i "s:CODEC_FLAG_GLOBAL_HEADER:AV_CODEC_FLAG_GLOBAL_HEADER:g" libffsox-2/ffsox_packet_writer.c
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ make DESTDIR="${pkgdir}" install
+}
More information about the arch-commits
mailing list