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

Maxime Gauduin alucryd at archlinux.org
Sat Jul 4 16:30:42 UTC 2020


    Date: Saturday, July 4, 2020 @ 16:30:42
  Author: alucryd
Revision: 390840

upgpkg: libvorbis 1.3.7-1

Modified:
  libvorbis/trunk/PKGBUILD

----------+
 PKGBUILD |   55 +++++++++++++++++++++++++++++++++++--------------------
 1 file changed, 35 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-04 16:11:53 UTC (rev 390839)
+++ PKGBUILD	2020-07-04 16:30:42 UTC (rev 390840)
@@ -5,37 +5,52 @@
 # Contributor: John Proctor <jproctor at prium.net>
 
 pkgname=libvorbis
-pkgver=1.3.6
-pkgrel=2
-pkgdesc='Vorbis codec library'
-arch=('x86_64')
-url='https://www.xiph.org/vorbis/'
-license=('BSD')
-depends=('libogg')
-provides=('libvorbis.so' 'libvorbisenc.so' 'libvorbisfile.so')
-source=("https://downloads.xiph.org/releases/vorbis/libvorbis-${pkgver}.tar.gz")
-sha256sums=('6ed40e0241089a42c48604dc00e362beee00036af2d8b3f46338031c9e0351cb')
+pkgver=1.3.7
+pkgrel=1
+pkgdesc='Reference implementation of the Ogg Vorbis audio format'
+arch=(x86_64)
+url=https://www.xiph.org/vorbis/
+license=(BSD)
+depends=(libogg.so)
+makedepends=(git)
+provides=(
+  libvorbis.so
+  libvorbisenc.so
+  libvorbisfile.so
+)
+_tag=0657aee69dec8508a0011f47f3b69d7538e9d262
+source=(git+https://github.com/xiph/vorbis.git#tag=${_tag})
+sha256sums=(SKIP)
 
+pkgver() {
+  cd vorbis
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd vorbis
+
+  ./autogen.sh
+}
+
 build() {
-  cd libvorbis-${pkgver}
+  cd vorbis
 
   ./configure \
-    --prefix='/usr' \
-    --disable-static
+    --prefix=/usr \
+    --disable-static \
+    --enable-shared
   make
 }
 
 check() {
-  cd libvorbis-${pkgver}
-
-  make -j1 check
+  make -C vorbis check
 }
 
 package() {
-  cd libvorbis-${pkgver}
-
-  make DESTDIR="${pkgdir}" install
-  install -Dm 644 COPYING -t "${pkgdir}"/usr/share/licenses/libvorbis
+  make DESTDIR="${pkgdir}" -C vorbis install
+  install -Dm 644 vorbis/COPYING -t "${pkgdir}"/usr/share/licenses/libvorbis
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list