diff options
author | Bastien Traverse | 2021-02-22 19:39:06 +0100 |
---|---|---|
committer | Bastien Traverse | 2021-02-22 19:39:06 +0100 |
commit | ec8b6d8f3ee364b59bf75095bcb624eb3678e0f4 (patch) | |
tree | 29db347436985cb173a64d3eae538c510f01d686 /PKGBUILD | |
parent | 37d789fabd71ac19057bf23d204eff5a84628895 (diff) | |
download | aur-ec8b6d8f3ee364b59bf75095bcb624eb3678e0f4.tar.gz |
Update to 1.3.7
- update description and source url
- validate official libvorbis source using upstream signature and (SHA1) checksums
- overhaul PKGBUILD, taking after libvorbis in [extra] and current best practice
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 74 |
1 files changed, 47 insertions, 27 deletions
@@ -1,51 +1,71 @@ -# Maintainer: Soukyuu <chrno-spheredΘhotmail·com> +# Maintainer: Bastien Traverse <neitsab at esrevart dot net> +# Contributor: Soukyuu <chrno-spheredΘhotmail·com> # Contributor: revel <revelΘmuub·net> # Contributor: Stephen Caraher <moskvax@gmail.com> # Contributor: Uli Armbruster <uli_armbrusterΘweb·de> # Contributor: Robert Gregor <gimpΘpop·de> pkgname=libvorbis-aotuv-lancer -_srcname=libvorbis-aotuv -pkgver=1.3.6 -pkgrel=0 -_aotuv_ver=b6.03 -pkgdesc='A fork of libvorbis intended to provide better quality sound at low to medium bitrates, with lancer patches to improve performance' +_srcname="${pkgname%-aotuv-lancer}" +pkgver=1.3.7 +pkgrel=1 +_aotuv_ver=aotuv-b6.03 +pkgdesc='The Vorbis library with aoTuV and Lancer patches' arch=('i686' 'x86_64') -url='https://www.hydrogenaud.io/forums/index.php?showtopic=109766' +url='https://hydrogenaud.io/index.php?topic=115774.0' license=('BSD') depends=('libogg') conflicts=('libvorbis' 'libvorbis-aotuv') -provides=('libvorbis=1.3.6' 'libvorbisfile.so' 'libvorbis.so' 'libvorbisenc.so') -source=("http://downloads.xiph.org/releases/vorbis/libvorbis-${pkgver}.tar.gz" - "https://freac.org/patches/libvorbis-${pkgver}-aotuv-${_aotuv_ver}.patch" - "https://freac.org/patches/libvorbis-${pkgver}-aotuv-${_aotuv_ver}-lancer.patch") -sha256sums=('6ed40e0241089a42c48604dc00e362beee00036af2d8b3f46338031c9e0351cb' - '1efd443bb7a32562f30ae778983e4fd31f07c612e08e49d536429443107bb946' - 'cb510d6d7222599eed0df8ea8708eb4cb3371a617e1a07eac83d723185ae1ad9') +provides=( + 'libvorbis.so' + 'libvorbisenc.so' + 'libvorbisfile.so' +) +source=("https://downloads.xiph.org/releases/vorbis/${_srcname}-${pkgver}.tar.gz"{,.asc} + "https://freac.org/patches/${_srcname}-${pkgver}-${_aotuv_ver}.patch" + "https://freac.org/patches/${_srcname}-${pkgver}-${_aotuv_ver}-lancer.patch" + "make-check-fix.patch::https://gitlab.xiph.org/xiph/vorbis/-/commit/4e1155cc77a2c672f3dd18f9a32dbf1404693289.patch") +validpgpkeys=(B7B00AEE1F960EEA0FED66FB9259A8F2D2D44C84) # Ralph Giles <giles@thaumas.net> +sha1sums=('2b415495f89b103138a23da5017a2a00837c6c94' + 'dc604e62a7e7ad60eb6fae0960cdf390a382258b' + 'ccb4725960467612c627961484065afd19c5f99e' + 'ce350ede3f6d11c09515d7e79fd8d1512d450e05' + 'ced440582403539d1b8904e003746ef75be36e1d') + prepare() { - cd "libvorbis-${pkgver}" - chmod +x configure - - # apply aotuv patches - patch -p1 -i "${srcdir}/libvorbis-${pkgver}-aotuv-${_aotuv_ver}.patch" + cd "${_srcname}-${pkgver}" + + # apply aotuv patch set + patch -p1 -i "${srcdir}/${_srcname}-${pkgver}-${_aotuv_ver}.patch" - # apply lancer patches - patch -p1 -i "${srcdir}/libvorbis-${pkgver}-aotuv-${_aotuv_ver}-lancer.patch" + # apply lancer patch set + patch -p1 -i "${srcdir}/${_srcname}-${pkgver}-${_aotuv_ver}-lancer.patch" + + # apply upstreamed patch to fix make check failure with lancer mod + patch -p1 -i "${srcdir}/make-check-fix.patch" } build() { - cd "libvorbis-${pkgver}" - ./configure --prefix=/usr --enable-shared --disable-static + cd "${_srcname}-${pkgver}" + ./configure \ + --prefix=/usr \ + --disable-static \ + --enable-shared make } check() { - cd "libvorbis-${pkgver}" - make -j1 check + cd "${_srcname}-${pkgver}" + make -k check } package() { - cd "libvorbis-${pkgver}" + cd "${_srcname}-${pkgver}" make DESTDIR="$pkgdir" install - install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + # install original libvorbis specific files + install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/${_srcname}" + install -Dm644 AUTHORS CHANGES -t "${pkgdir}/usr/share/doc/${_srcname}-${pkgver}" + # install libvorbis-aotuv-lancer specific files + install -Dm644 aoTuV_README-1st.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 aoTuV_README-1st.txt aoTuV_technical.txt -t "${pkgdir}/usr/share/doc/${pkgname}" } |