apkbuilds @ 326ff70b572b18d5edfb6cdd30bb2da725290c7a

 1# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
 2pkgname=reddit-nextcloud-importer
 3pkgver=0.1.1
 4pkgrel=0
 5pkgdesc="A process to import images and videos from saved post on reddit to a instance of Nextcloud."
 6url="https://git.sr.ht/~gabrielgio/reddit-nextcloud-importer"
 7arch="noarch"
 8license="Apache-2.0"
 9depends="
10    python3
11    py3-requests
12    gallery-dl
13    py3-jsonpickle
14    py3-nextcloud-api-wrapper
15    py3-praw
16"
17makedepends="python3-dev py3-setuptools_scm"
18builddir="$srcdir/$pkgname-$pkgver"
19install="$pkgname.pre-install"
20subpackages="$pkgname-openrc"
21source="$pkgname-$pkgver.tar.gz::https://artifacts.gabrielgio.me/$pkgname/$pkgname-$pkgver.tar.gz
22        $pkgname.initd
23        $pkgname.confd"
24provides="py3-reddit-nextcloud-importer=$pkgver-r$pkgrel"
25# TODO: requires many many many dependencies
26options="!check"
27
28
29build() {
30	python3 setup.py build
31}
32
33package() {
34    	# install scripts
35	install -m755 -D "$srcdir"/$pkgname.initd \
36		"$pkgdir"/etc/init.d/$pkgname
37	install -m644 -D "$srcdir"/$pkgname.confd \
38		"$pkgdir"/etc/conf.d/$pkgname
39
40	python3 setup.py install --prefix=/usr --root="$pkgdir"
41}
42
43sha512sums="
44dd983f438f7750d089f87623d183c130c17cdb0850e875993a905e59306c503e7340bdedb67c0a0ab36f50469a0d711733cdc46182e2ce8269c3db0a5996c841  reddit-nextcloud-importer-0.1.1.tar.gz
45bccdb30b9a9149647ef11bbeb50fcc169f5da7b9d445d1aa981751dfe121c9df834379ce787899bcf070eac68d5f39995e6bfa647c5e004cbc592e481916a938  reddit-nextcloud-importer.initd
4664e63e65506478f5b9ad89b84539c8e4310e9f0239278d8776dae26ff60eee5f21621cc665e343a1f92e4705e2f95308d2108cf16012a5c9d8cbc5c20c89eb89  reddit-nextcloud-importer.confd
47"