1 # Maintainer: Dan Serban
4 pkgname=dupeguru-me-bin
7 pkgdesc="Find duplicate songs in your music collection"
9 url=http://www.hardcoded.net/dupeguru_me/
10 license=(custom:Fairware)
11 depends=(python pyqt sip)
14 [ "${CARCH}" == "x86_64" ] && _filearch=amd64
18 rm dupeguru-me_*.deb 2>/dev/null || true
19 _url=$(lynx -dump http://www.hardcoded.net/dupeguru_me/ | grep -o http.*${_filearch}.deb | tail -1)
21 bsdtar -xf $(basename ${_url}) data.tar.gz
22 bsdtar -xf data.tar.gz
24 rm usr/local/share/dupeguru_me/sip.so
25 cd usr/local/share/dupeguru_me
27 mkdir -p "${pkgdir}"/usr/bin
29 mv share "${pkgdir}"/usr/
31 mv dupeguru_me "${pkgdir}"/usr/share/
32 sed -i 's|#!/usr/bin/env python3.1|#!/usr/bin/python|' "${pkgdir}"/usr/share/dupeguru_me/run.py
33 USRBINFILE="${pkgdir}"/usr/bin/dupeguru_me
34 echo "#!/bin/bash" > "$USRBINFILE"
35 echo "cd /usr/share/dupeguru_me" >> "$USRBINFILE"
36 echo "python run.py" >> "$USRBINFILE"
37 chmod +x "$USRBINFILE"