summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d6fae88fed6e0ea0b5304e2ef4ed26245d4f749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Lukas1818 aur at lukas1818 dot de

pkgname=sync-my-moodle-git
pkgver=r183.d77957e
pkgrel=1
pkgdesc="a synchronization client for the RWTH Moodle"
arch=('any')
url="https://github.com/Romern/syncMyMoodle"
license=('GPL3')
depends=('python>=3.6' 'python-requests' 'python-beautifulsoup4' 'yt-dlp' 'python-tqdm' 'python-pdfkit')
optdepends=('python-secretstorage: For storing your password in your keyring')
makedepends=('git')
source=("$pkgname::git+https://github.com/Romern/syncMyMoodle.git")
sha512sums=('SKIP')

pkgver() {
	cd "$srcdir/$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare()
{
	sed -i 's/, default="config.json"/, default=os.path.expanduser("~\/.config\/sync-my-moodle.json")/g' "$srcdir/$pkgname/syncmymoodle/__main__.py"
}

package()
{
	install -Dm 755 "$srcdir/$pkgname/syncmymoodle/__main__.py" "$pkgdir/usr/bin/syncmymoodle"
}