[arch-commits] Commit in libilbc/repos/community-x86_64 (PKGBUILD PKGBUILD)
Daniel Bermond
dbermond at archlinux.org
Sat Dec 19 14:28:04 UTC 2020
Date: Saturday, December 19, 2020 @ 14:28:03
Author: dbermond
Revision: 779975
archrelease: copy trunk to community-x86_64
Added:
libilbc/repos/community-x86_64/PKGBUILD
(from rev 779974, libilbc/trunk/PKGBUILD)
Deleted:
libilbc/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 69 +++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 40 insertions(+), 29 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-19 14:27:41 UTC (rev 779974)
+++ PKGBUILD 2020-12-19 14:28:03 UTC (rev 779975)
@@ -1,29 +0,0 @@
-# Maintainer: Daniel Bermond <dbermond at archlinux.org>
-
-pkgname=libilbc
-pkgver=2.0.2
-pkgrel=5
-pkgdesc='A friendly copy of the iLBC codec from the WebRTC project'
-arch=('x86_64')
-url='https://github.com/TimothyGu/libilbc/'
-license=('BSD')
-depends=('glibc')
-source=("https://github.com/TimothyGu/libilbc/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.bz2")
-sha256sums=('88e2dc14e1fccd7b7a0d7f84e96ac22a33c3c86820cee4b0a05e3dcc08c2b096')
-
-build() {
- cd "${pkgname}-${pkgver}"
-
- ./configure \
- --prefix='/usr' \
- --enable-static='no' \
- --enable-shared='yes'
-
- make
-}
-
-package() {
- make -C "${pkgname}-${pkgver}" DESTDIR="$pkgdir" install
-
- install -D -m644 "${pkgname}-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
Copied: libilbc/repos/community-x86_64/PKGBUILD (from rev 779974, libilbc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-12-19 14:28:03 UTC (rev 779975)
@@ -0,0 +1,40 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+
+pkgname=libilbc
+pkgver=3.0.3
+pkgrel=1
+pkgdesc='A friendly copy of the iLBC codec from the WebRTC project'
+arch=('x86_64')
+url='https://github.com/TimothyGu/libilbc/'
+license=('BSD')
+depends=('gcc-libs')
+makedepends=('git' 'cmake')
+source=("git+https://github.com/TimothyGu/libilbc.git#tag=v${pkgver}?signed"
+ 'git+https://github.com/abseil/abseil-cpp.git')
+validpgpkeys=('9456AFC0814A8139E99483517FE6B095B582B0D4') # Timothy Gu
+sha256sums=('SKIP'
+ 'SKIP')
+
+prepare() {
+ git -C libilbc submodule init
+ git -C libilbc config --local submodule.abseil.url "${srcdir}/abseil-cpp"
+ git -C libilbc submodule update
+}
+
+build() {
+ cmake -B build -S libilbc \
+ -DCMAKE_BUILD_TYPE:STRING='None' \
+ -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
+ -Wno-dev
+ make -C build
+}
+
+check() {
+ build/ilbc_test 20 libilbc/sample.pcm build/sample-encoded.ilbc build/sample-decoded.pcm
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+ install -D -m644 libilbc/COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m644 libilbc/PATENTS -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
More information about the arch-commits
mailing list