1 # Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2 # Source: https://github.com/nicoulaj/archlinux-packages
3 pkgname=hda-jack-retask-bzr
4 _pkgname=hda-jack-retask
7 pkgdesc="Retask your jack plugs (eg. turn your microphone jack plug into a headphone one)."
9 url="https://code.launchpad.net/~diwic/+junk/hda-jack-retask"
11 depends=(gtk3 desktop-file-utils)
14 install=${pkgname}.install
16 _bzrtrunk="https://code.launchpad.net/~diwic/+junk/hda-jack-retask"
17 _bzrmod="hda-jack-retask"
22 msg2 "Connecting to Bazaar server and checking out..."
23 if [ -d ${_bzrmod} ] ; then
24 cd ${_bzrmod} && bzr --no-plugins pull ${_bzrtrunk} -q -r ${pkgver}
25 msg2 "Local files are up to date."
27 bzr --no-plugins branch ${_bzrtrunk} ${_bzrmod} -q -r ${pkgver}
29 msg2 "Bazaar checkout done or server timeout."
32 cd "${srcdir}/${_bzrmod}"
35 msg2 "Generate desktop application entry..."
36 cat > "${srcdir}"/${_pkgname}.desktop << EOF
40 Exec=/usr/bin/hda-jack-retask
42 Icon=applications-system
44 Categories=Settings;HardwareSettings;
50 cd "${srcdir}/${_bzrmod}"
51 make install DESTDIR="${pkgdir}"
53 msg2 "Install desktop application entry in /usr/share/applications..."
54 install -Dm644 "${srcdir}"/${_pkgname}.desktop "${pkgdir}"/usr/share/applications/${_pkgname}.desktop