[arch-commits] Commit in (bcg729 bcg729/repos bcg729/trunk bcg729/trunk/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Wed Mar 20 22:09:08 UTC 2019


    Date: Wednesday, March 20, 2019 @ 22:09:07
  Author: anthraxx
Revision: 442989

addpkg: bcg729 1.0.4-3

Added:
  bcg729/
  bcg729/repos/
  bcg729/trunk/
  bcg729/trunk/PKGBUILD

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Added: bcg729/trunk/PKGBUILD
===================================================================
--- bcg729/trunk/PKGBUILD	                        (rev 0)
+++ bcg729/trunk/PKGBUILD	2019-03-20 22:09:07 UTC (rev 442989)
@@ -0,0 +1,45 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Christian Kohlstedde <christian+arch-pkg at kohlsted.de>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Peter Wu <peter at lekensteyn.nl>
+
+pkgname=bcg729
+pkgver=1.0.4
+pkgrel=3
+pkgdesc='Encoder and decoder of the ITU G.729 Annex A/B speech codec'
+url='https://www.linphone.org/technical-corner/bcg729/overview'
+arch=('x86_64')
+license=('GPL2')
+makedepends=('cmake')
+depends=('glibc')
+source=(https://github.com/BelledonneCommunications/bcg729/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
+        ${pkgname}-cmake-symbol-visibility.patch::https://github.com/Lekensteyn/bcg729/commit/5e70712297ad2df58a035728da07c440c8ab5fcf.patch
+        ${pkgname}-cmake-install-pkgconfig.patch::https://github.com/Lekensteyn/bcg729/commit/58e60cff7fd5829f26fcf6d7b4d80de440b1b151.patch)
+sha256sums=('94b3542a06cbd96306efc19f959f9febae62806a22599063f82a8c33e989d48b'
+            '6696d6f3a768a6ad1c3f48439ae26a1f7cda170b010095032cd391efe457deff'
+            '22292952b6c7db426cec99bcabac87ef8b4b2bc8f4ef3c43924578878f59ce68')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  # CMake build fixes https://github.com/BelledonneCommunications/bcg729/pull/7
+  # cmake: fix symbol visibility
+  patch -Np 1 < "${srcdir}/${pkgname}-cmake-symbol-visibility.patch"
+  # CMake: install pkg-config files for parity with autotools
+  patch -Np 1 < "${srcdir}/${pkgname}-cmake-install-pkgconfig.patch"
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  cmake . \
+      -DCMAKE_INSTALL_PREFIX=/usr \
+      -DCMAKE_INSTALL_LIBDIR=lib \
+      -DENABLE_STATIC=OFF
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list