initial import
This commit is contained in:
50
cdparanoia/PKGBUILD
Normal file
50
cdparanoia/PKGBUILD
Normal file
@@ -0,0 +1,50 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=cdparanoia
|
||||
pkgver=10.2
|
||||
_debver=10.2+debian
|
||||
_debrel=13
|
||||
pkgrel=6
|
||||
pkgdesc="Compact Disc Digital Audio extraction tool"
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://www.xiph.org/paranoia/"
|
||||
license=('GPL-2' 'LGPL-2.1')
|
||||
depends=('glibc')
|
||||
makedepends=('quilt')
|
||||
options=('!makeflags' '!staticlibs')
|
||||
source=(https://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-$pkgver.src.tgz
|
||||
https://deb.debian.org/debian/pool/main/c/cdparanoia/cdparanoia_3.$_debver-$_debrel.debian.tar.xz
|
||||
gcc.patch)
|
||||
sha512sums=('4ab0a0f5ef44d56c1af72d1fc1035566a1a89c4eeddb9e8baea675fe51c06138d913342afc8bed167d9fa55672fa25a2763ce21f7e24c1232e4739aff20733a7'
|
||||
'ab7d520ef229335581d5a3111b8912c209df5850ddbc81cfddb2130d7a73c8de14a16782cd1f680d73ec28ddb1059dc37d0a4a44ae42c87198beceea9bca9e60'
|
||||
'4d86fccc0967dd8d568b97a5b5b92dbe830a7227bee3167371ffc8e7d7f0b99aa0ad4116539c3414f2cc4a600c9bc3fcf06b5d8e4d2fe531dd9d6781736bd1a8')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${pkgname}-III-${pkgver}"
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian/patches debian
|
||||
|
||||
quilt push -av
|
||||
else
|
||||
patch -p0 -i ${srcdir}/gcc.patch
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-III-${pkgver}"
|
||||
./configure --prefix=/usr --mandir=/usr/share/man
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-III-${pkgver}"
|
||||
make prefix="${pkgdir}/usr" MANDIR="${pkgdir}/usr/share/man" install
|
||||
for i in COPYING-{,L}GPL; do
|
||||
install -Dm644 ${i} ${pkgdir}/usr/share/licenses/${pkgname}/${i}
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user