aboutsummaryrefslogtreecommitdiff
path: root/apks/reddit-importer/APKBUILD
blob: c75c4bd26abe70eb8b4a212e8b012978252d824f (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
# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
pkgname=reddit-importer
pkgver=0_git20231225
pkgrel=0
_commit=e5ce82abf59dc28bcc84a336053a95a58cf27c16
pkgdesc="A process to import images and videos from liked post on reddit local folder."
url="https://git.sr.ht/~gabrielgio/reddit-importer"
arch="x86_64"
license="MIT"
options="!check" # this can't be tested
depends="
    gallery-dl
"
makedepends="go make"
builddir="$srcdir/$pkgname-$_commit"
install="$pkgname.pre-install"
subpackages="$pkgname-openrc"
source="$pkgname-$_commit.tar.gz::https://git.sr.ht/~gabrielgio/$pkgname/archive/$_commit.tar.gz
        $pkgname.initd
        $pkgname.confd"


build() {
	make
}

package() {
	install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd \
		"$pkgdir"/etc/conf.d/$pkgname
	install -Dm755 bin/reddit-importer "$pkgdir"/usr/bin/reddit-importer
}

sha512sums="
06cbe8dc28737b4f3fa265f4af1d0dd82e2e0ad8e15e7b0efec3de6e56a7677cf9d61d82100b777a8238331bb31d98b61a427e0c9899ce391e191fcc8d765d85  reddit-importer-e5ce82abf59dc28bcc84a336053a95a58cf27c16.tar.gz
8d992bbcf8d0b9f54ce7659c9c6d27dc886b488432daad0c0857e31b006cc54b11096e056d996bb4d831babf72306e274a24a4ab77a904fa7dcf0430875e597f  reddit-importer.initd
d277a7144b89a1f100c7f2fe2a645b16ddfdcfd23ee594d24d171fc2965c342f8fce5aabff2f9ca40905d4ad7272daa586c7c8bbdf98711e627f511b07306695  reddit-importer.confd
"