aboutsummaryrefslogtreecommitdiff
path: root/apks/reddit-nextcloud-importer/APKBUILD
blob: e3e414e5782794741e6ac5903c6be6f2a7d429b6 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
pkgname=reddit-nextcloud-importer
pkgver=0.1.2
pkgrel=2
pkgdesc="A process to import images and videos from saved post on reddit to a instance of Nextcloud."
url="https://git.sr.ht/~gabrielgio/reddit-nextcloud-importer"
arch="noarch"
license="Apache-2.0"
depends="
    python3
    py3-requests
    gallery-dl
    py3-jsonpickle
    py3-nextcloud-api-wrapper
    py3-praw
    py3-six
"
makedepends="python3-dev py3-setuptools_scm"
checkdepends="py3-pytest py3-pytest-mock"
builddir="$srcdir/$pkgname-$pkgver"
install="$pkgname.pre-install"
subpackages="$pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://artifacts.gabrielgio.me/archive/$pkgname/$pkgname-$pkgver.tar.gz
        $pkgname.initd
        $pkgname.confd"
provides="py3-reddit-nextcloud-importer=$pkgver-r$pkgrel"


build() {
	python3 setup.py build
}

check() {
   python3 -m pytest
}

package() {
    	# install scripts
	install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd \
		"$pkgdir"/etc/conf.d/$pkgname

	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
7f4b7f75377faef64936b10c92420c8df9fa0de8b65d083b5124b547bfda7c5760f08dcbfdb5816f50ad9feaf5d336a4ae9a159233988eca217c09145a82448f  reddit-nextcloud-importer-0.1.2.tar.gz
b7960ee63d10c792fb3302f6f84fa23975dfb1d24a85249ff612c289126297f605bc4203b28eff7f94aefb6729593d4fc22bdb78d398d7e4445f22f2b78175a0  reddit-nextcloud-importer.initd
8e400cd0ac302b8cade98db5aea8afd109e7d5d434281238997c1e3f0b779322ecade95a26fde5860a3846b8d9687cca95df1c1b5ee0b489d6782bf6c2680666  reddit-nextcloud-importer.confd
"