diff options
author | John Lane | 2018-03-12 11:54:53 +0000 |
---|---|---|
committer | John Lane | 2018-03-12 11:54:53 +0000 |
commit | 196bd9479de2d3d3e7b9c32b79feb8ba83932a24 (patch) | |
tree | e4c5a1289d346d45f2ce7c9bd003cdd3322a1cd0 | |
download | aur-196bd9479de2d3d3e7b9c32b79feb8ba83932a24.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 46 |
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0a0d001d44e5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = cdrip-tools + pkgdesc = Command-line accuraterip verifier and rip offset fixer + pkgver = master + pkgrel = 1 + url = https://github.com/spadev/cdrip-tools/tree/vmaster + arch = i686 + arch = x86_64 + license = GPL3 + depends = python + depends = libsndfile + source = https://github.com/spadev/cdrip-tools/archive/master.zip + sha512sums = 43493a2f7b0f8cd0fc9f3de82cc3d1f0bb81b770e468ba7bf3259c89cbd7de3d1ba1295d1f628cf3dc7d65ab8fbc4cca7d73b85309932dd81eb0369d9137c20a + +pkgname = cdrip-tools + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..6b650bbc4142 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.xz +*.zip +src/ +pkg/ +*.un~ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8969b06a424f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: John Lane <archlinux at jelmail dot com> + +# Please note some issues with this package +# The latest release (0.2) does not work so this package builds 'master' +# as a temporary workaround. Also, upstream does not package this as a +# python library so this is worked around by this packager. +# The 'correct' code is left in place but commented out for now. +# I will correct this when upstream version bumps master. + +pkgname=cdrip-tools +#pkgver=0.2 +pkgver=master +pkgrel=1 +pkgdesc="Command-line accuraterip verifier and rip offset fixer" +url="https://github.com/spadev/cdrip-tools/tree/v${pkgver}" +arch=('i686' 'x86_64') +license=(GPL3) +depends=(python libsndfile) +#source=("https://github.com/spadev/${pkgname}/archive/v${pkgver}.zip") +source=("https://github.com/spadev/${pkgname}/archive/${pkgver}.zip") +sha512sums=('43493a2f7b0f8cd0fc9f3de82cc3d1f0bb81b770e468ba7bf3259c89cbd7de3d1ba1295d1f628cf3dc7d65ab8fbc4cca7d73b85309932dd81eb0369d9137c20a') + +build() { + cd $srcdir/$pkgname-$pkgver + cc -o ckcdda ckcdda.c + cc -o splitaudio -l sndfile splitaudio.c + + # nasty library hack - change name to something less generic + sed -i -e 's/^import utils/import cdrip_utils as utils/' \ + -e 's/^from utils/from cdrip_utils/' *.py +} + +package() { + cd $srcdir/$pkgname-$pkgver + install -Dm644 README.md $pkgdir/usr/share/doc/$pkgname/README.md + install -Dm755 arverify.py $pkgdir/usr/bin/arverify + install -Dm755 fixoffset.py $pkgdir/usr/bin/fixoffset + install -Dm755 splitaudio $pkgdir/usr/bin/ + install -Dm755 ckcdda $pkgdir/usr/bin/ + + # nasty library hack - install renamed library (hopefully in site-packages!) + pylibdir=$(python -c "import sys; print(sys.path[-1]);") + install -Dm755 utils.py $pkgdir${pylibdir}/cdrip_utils.py + +} + |