diff options
author | Virgil Dupras | 2015-06-08 22:03:57 +0000 |
---|---|---|
committer | Virgil Dupras | 2015-06-08 22:03:57 +0000 |
commit | 8f68efd0aee168f7eb64e9c3f1fa2a9f563737a0 (patch) | |
tree | b300cf1f460fcc057af50b10e1e5c350f39de80e /PKGBUILD | |
download | aur-dupeguru-me.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f3b9b728e7ba --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Virgil Dupras <hsoft@hardcoded.net> +pkgname=dupeguru-me +pkgver=6.8.1 +pkgrel=1 +pkgdesc="Find duplicate songs on your system" +arch=(any) +url="http://www.hardcoded.net/dupeguru_me/" +license=('BSD') +depends=('python' 'python-pyqt5' 'libxkbcommon-x11') +makedepends=( + python-sphinx + gcc +) +source=( + http://download.hardcoded.net/$pkgname-src-$pkgver.tar.gz +) +md5sums=( + '70b5dd7f258dcdb2584521e03aedb8bd' +) + +build() { + cd "$srcdir" + python3 -m venv env --system-site-packages + source env/bin/activate + python -m pip install --no-index --find-links=deps -r requirements.txt + msg "Starting build..." + python configure.py --edition me + python build.py --clean +} + +package() { + cd "$srcdir" + + python package.py --arch-pkg + cd "build/${pkgname}-arch" + + mkdir -p "${pkgdir}/usr/share/applications" + mv ${pkgname}.desktop "${pkgdir}/usr/share/applications" + + mkdir -p "$pkgdir/usr/share/${pkgname}" + cp -a * "$pkgdir/usr/share/${pkgname}/" + chmod a+x "$pkgdir/usr/share/${pkgname}/run.py" + + mkdir -p "$pkgdir/usr/bin" + ln -s ../share/${pkgname}/run.py "$pkgdir/usr/bin/${pkgname}" +} |