[arch-commits] Commit in lib32-celt/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Fri May 8 09:59:42 UTC 2020


    Date: Friday, May 8, 2020 @ 09:59:42
  Author: heftig
Revision: 625582

0.11.3-4

Modified:
  lib32-celt/trunk/PKGBUILD

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++--------------------
 1 file changed, 29 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-08 09:58:25 UTC (rev 625581)
+++ PKGBUILD	2020-05-08 09:59:42 UTC (rev 625582)
@@ -2,38 +2,47 @@
 # Contributor: SpepS <dreamspepser at yahoo dot it>
 # Contributor: see .contrib
 
-_realname=celt
-pkgname=lib32-$_realname
+pkgname=lib32-celt
 pkgver=0.11.3
-pkgrel=3
-pkgdesc='Low-latency audio communication codec (32 bit)'
-arch=('x86_64')
-url='http://www.celt-codec.org'
-license=('BSD')
-depends=('lib32-glibc' "$_realname=$pkgver")
-makedepends=('gcc-multilib')
-source=("https://downloads.xiph.org/releases/$_realname/$_realname-$pkgver.tar.gz")
-sha512sums=('1f7b8c9b0fcb3a31ba81c220f89fb15173f6e7a25f8fa9d6669790cf29cccb5f75fb37a9f41c76bec5e8d8b9de47d65949831d5a843dcffb2f0747801a8c9bde')
+pkgrel=4
+pkgdesc="Low-latency audio communication codec (32 bit)"
+url="https://gitlab.xiph.org/xiph/celt"
+arch=(x86_64)
+license=(BSD)
+depends=(lib32-glibc celt)
+makedepends=(git libogg)
+provides=(libcelt0.so)
+_commit=6c28805c56d562bec56cc0b31c0d5905ebb5a6ac  # tags/v0.11.3
+source=("git+$url.git#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd celt
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cd celt
+  ./autogen.sh
+}
+
 build() {
-  cd "$srcdir/$_realname-$pkgver"
+  cd celt
 
   export CC="gcc -m32"
   export CXX="g++ -m32"
-  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+  export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
 
-  ./configure --prefix=/usr --libdir=/usr/lib32 --disable-static
+  ./configure --prefix=/usr --enable-custom-modes --disable-static --libdir=/usr/lib32
   make -C libcelt
 }
 
 package() {
-  cd "$srcdir/$_realname-$pkgver"
-
+  cd celt
   make DESTDIR="$pkgdir" install-pkgconfigDATA
   make -C libcelt DESTDIR="$pkgdir" install
-
-  # remove unneeded stuff
-  rm -rf "$pkgdir/usr/include"
+  rm -r "$pkgdir/usr/include"
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
 }
 
-# vim:set ts=2 sw=2 et:
+# vim:set sw=2 et:


More information about the arch-commits mailing list