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

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


    Date: Friday, May 8, 2020 @ 09:59:07
  Author: heftig
Revision: 382777

0.11.3-4

Modified:
  celt/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++++++++++++++++++-------
 1 file changed, 22 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-08 09:57:19 UTC (rev 382776)
+++ PKGBUILD	2020-05-08 09:59:07 UTC (rev 382777)
@@ -5,23 +5,38 @@
 
 pkgname=celt
 pkgver=0.11.3
-pkgrel=3
+pkgrel=4
 pkgdesc="Low-latency audio communication codec"
+url="https://gitlab.xiph.org/xiph/celt"
 arch=(x86_64)
-url="http://www.celt-codec.org/"
 license=(BSD)
 depends=(libogg)
-source=(https://downloads.us.xiph.org/releases/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('5511732a426cc42bf986ca79b5cdd02f')
+makedepends=(git)
+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 $pkgname-$pkgver
+  cd celt
   ./configure --prefix=/usr --enable-custom-modes --disable-static
   make
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd celt
   make DESTDIR="$pkgdir" install
-  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
 }
+
+# vim:set sw=2 et:


More information about the arch-commits mailing list