Date: Tuesday, November 1, 2022 @ 22:51:15
Author: felixonmars
Revision: 1340573
archrelease: copy trunk to community-staging-x86_64
Added:
gpac/repos/community-staging-x86_64/
gpac/repos/community-staging-x86_64/PKGBUILD
(from rev 1340571, gpac/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: gpac/repos/community-staging-x86_64/PKGBUILD (from rev 1340571,
gpac/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-11-01 22:51:15 UTC (rev 1340573)
@@ -0,0 +1,49 @@
+# Maintainer: Eric Bélanger <[email protected]>
+# Maintainer: Maxime Gauduin <[email protected]>
+
+pkgname=gpac
+pkgver=2.0.0
+pkgrel=2
+epoch=1
+pkgdesc='A multimedia framework based on the MPEG-4 Systems standard'
+arch=(x86_64)
+url=https://gpac.wp.imt.fr/
+license=(LGPL)
+depends=(
+ glibc
+ openssl
+ xz
+ zlib
+)
+makedepends=(git)
+provides=(libgpac.so)
+_tag=418db4149af78773815b5f6a7030a120037ba140
+source=(git+https://github.com/gpac/gpac.git#tag=${_tag})
+sha256sums=(SKIP)
+
+pkgver() {
+ cd gpac
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ export CFLAGS+=" -ffat-lto-objects"
+ export CXXFLAGS+=" -ffat-lto-objects"
+ cd gpac
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --disable-oss-audio \
+ --disable-dvb4linux \
+ --disable-qjs \
+ --enable-pic \
+ --use-js=no
+ make
+}
+
+package() {
+ make DESTDIR="${pkgdir}" STRIP=true -C gpac install
+ make DESTDIR="${pkgdir}" STRIP=true -C gpac install-lib
+}
+
+# vim: ts=2 sw=2 et: