[arch-commits] Commit in libao/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Thu Sep 3 19:46:12 UTC 2020
Date: Thursday, September 3, 2020 @ 19:46:11
Author: dvzrv
Revision: 395417
upgpkg: libao 1.2.2-5: Rebuild to add provides.
Switch to correct license (GPL2).
Use source tarball instead of relying on unverified git checkout.
Removing unused conflicts and replaces arrays.
Setting provides to include only libao.so.
Run autoreconf in prepare()
Add all available sodeps in package() and the respective packages in makedepends.
Install docs.
Update maintainer info.
Modified:
libao/trunk/PKGBUILD
----------+
PKGBUILD | 62 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 31 insertions(+), 31 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-09-03 19:14:52 UTC (rev 395416)
+++ PKGBUILD 2020-09-03 19:46:11 UTC (rev 395417)
@@ -1,43 +1,43 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Gaetan Bisson <bisson at archlinux.org>
# Contributor: dorphell <dorphell at archlinux.org>
-# Maintainer: Gaetan Bisson <bisson at archlinux.org>
pkgname=libao
pkgver=1.2.2
-pkgrel=4
-pkgdesc='Cross-platform audio output library and plugins'
-url='https://xiph.org/ao/'
+pkgrel=5
+pkgdesc="Cross-platform audio output library and plugins"
+url="https://xiph.org/ao/"
arch=('x86_64')
-license=('GPL')
-depends=('alsa-lib')
-makedepends=('libpulse' 'git')
-backup=('etc/libao.conf')
-#source=("http://downloads.xiph.org/releases/ao/${pkgname}-${pkgver}.tar.gz"
-#source=("git+https://git.xiph.org/libao.git#commit=3f4b02f046550aca54d7f11a5d9c56ac421f0b66"
-source=("git+https://github.com/xiph/libao.git#commit=3f4b02f046550aca54d7f11a5d9c56ac421f0b66"
- 'libao.conf')
-sha256sums=('SKIP'
- 'c6cde8eaa3516ab6a2e6f154a70961b3f448f4b739491a82e0c512f2740525af')
+license=('GPL2')
+depends=('gcc-libs' 'glibc')
+makedepends=('alsa-lib' 'libpulse')
+provides=('libao.so')
+backup=("etc/${pkgname}.conf")
+source=("https://gitlab.xiph.org/xiph/libao/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+ "${pkgname}.conf")
+sha512sums=('d2736d25b60862e7d7469611ce31b1df40a4366ab160e2ff1b46919ae91692d1596c8468e4f016303b306fc3ac1bddc7b727f535a362f403c3fe7c6532e9045a'
+ 'f50d23993eeab4786e68edec88665783a697c141e8f26d38edbe4deb1c760ec690741c70f39e1ec5edaf07ce18216709ea8c23bd622543796248408ce32e53c4')
+b2sums=('e5b5d87c4357ee113769732cb6a7e0afa28b2bc4923be8dacd1fa39ac5fb96d8a5e19bc45137ffc8ec63eef0382130ab9b311aad3a66be4566e0cb9761417b23'
+ '5ace51c34b8f9409c5f322ccb1381984b35402866ced3b1b38b2b8fffd10780de80d33418e031decb2cfba452029a48b40df8077d7d67390fcf87bcf57c0cbca')
-conflicts=('libao-pulse')
-provides=("libao-pulse=${pkgver}-${pkgrel}")
-replaces=('libao-pulse')
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ autoreconf -vfi
+}
build() {
-# cd "${srcdir}/${pkgname}-${pkgver}"
- cd "${srcdir}/${pkgname}"
- ./autogen.sh
-
- ./configure \
- --prefix=/usr \
- --enable-alsa-mmap \
-
- make
+ cd "${pkgname}-${pkgver}"
+ ./configure --prefix=/usr \
+ --enable-alsa-mmap
+ make
}
package() {
-# cd "${srcdir}/${pkgname}-${pkgver}"
- cd "${srcdir}/${pkgname}"
-
- make DESTDIR="${pkgdir}" install
- install -Dm644 "${srcdir}"/libao.conf "${pkgdir}"/etc/libao.conf
+ depends+=('libasound.so' 'libpulse.so' 'libpulse-simple.so')
+ cd "${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ # default config
+ install -vDm 644 "../${pkgname}.conf" -t "${pkgdir}/etc/"
+ install -vDm 644 {AUTHORS,CHANGES,HACKING,README,TODO} \
+ -t "${pkgdir}/usr/share/doc/${pkgname}"
}
More information about the arch-commits
mailing list