Package Details: accountable2you-bin 1.84-2

Git Clone URL: https://aur.archlinux.org/accountable2you-bin.git (read-only, click to copy)
Package Base: accountable2you-bin
Description: Accountable2You client application
Upstream URL: https://accountable2you.com
Keywords: accountability
Licenses: unknown
Conflicts: accountable2you
Provides: accountable2you
Submitter: Machione
Maintainer: Machione
Last Packager: Machione
Votes: 0
Popularity: 0.000000
First Submitted: 2019-12-27 22:58
Last Updated: 2020-01-01 12:45

Latest Comments

Machione commented on 2020-01-01 12:46

@yochananmarqos thanks for the constructive feedback!

Unfortunately installing the dependancies with Pacman doesn't work since if the user also has the python package installed then Pacman will install the dependancies for that version of Python, which is not necessarily the same as the python37 that the .pyc requires. I have removed the sudo and moved the pip installation into the accountable2you-bin.install file along with the contents you helpfully provided in your comment.

I didn't feel comfortable attempting a decompilation of the software itself since it's proprietary.

yochananmarqos commented on 2019-12-28 16:11

Do NOT use sudo. The package() function uses a fakeroot environment. Install the dependencies with Pacman, not Pip.

You need to use an install file to cover what the Debian package does in the postinst, prerm and postrm.

You're correct about using python37 as the .pyc was byte compiled with Python 3.7 and won't work with 3.8. However, you might be able to use python-uncompyle6 to decompile it and install the resulting files manually.

PKGBUILD:

pkgname=accountable2you-bin
pkgver=1.84
pkgrel=1
pkgdesc='Accountable2You client application'
arch=('any')
url='https://accountable2you.com'
license=('unknown')
depends=('wmctrl' 'python37' 'libappindicator-gtk3' 'python-suds' 'python-psutil')
provides=('accountable2you')
conflicts=('accountable2you')
install='accountable2you.install'
source=('https://secure.accountable2you.com/linux/deb/accountable2you-1.84p37.zip')
sha256sums=('756678f77d41d6924f856a79f39fe398e3c9ffc0185a20d773c61bb9ca689a4d')

prepare() {
    ar x accountable2you*.deb
}

package() {
    tar -xvf data.tar.xz -C "$pkgdir"
    sed -i 's|python3|python3.7|g' "$pkgdir"/usr/bin/accountable2you
}

accountable2you.install:

post_install() {
    python37 /usr/share/accountable2you/accountable2you.pyc install || true
}

pre_remove() {
    python37 /usr/share/accountable2you/accountable2you.pyc uninstall || true
}


post_remove() {
    pkill -9 -f "accountable2you.pyc" || true
}