aboutsummaryrefslogtreecommitdiff
path: root/apks/reddit-nextcloud-importer/APKBUILD
blob: d125f820cfc6791574e2d22dadc23c805679cd8d (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
# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
pkgname=reddit-nextcloud-importer
pkgver=0.1.2
pkgrel=1
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
"
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/$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="
aa4274d5b904c15bf262e59fbc50de58d414f660b3e3214cd44ebab0aa2f80ed890ed5bb9190df555118d8dbec81e41553816fcffc3fe1770f347c394501910d  reddit-nextcloud-importer-0.1.2.tar.gz
718c5997338db00418c3070007c38c8fad1743e8e17e5ef3e7d25d2d40ae9474bd51edd450b854e588595cc62502a18aaa7945a2b8227a5480bb2f805a1bda1a  reddit-nextcloud-importer.initd
83695d870b1a5d6d914c268001084ba5a4a65842b5ee8243736a45810822bc493af1990a6a5ca71dfd623f932388824edb5dced8f4fefadc95c55d1513e0db93  reddit-nextcloud-importer.confd
"