This repository has been archived on 2023-01-08. You can view files and clone it, but cannot push or open issues or pull requests.
ptrcports/nitter/APKBUILD
2022-05-28 09:44:20 +02:00

41 lines
1.2 KiB
Text

# Maintainer: psykose <alice@ayaya.dev>
pkgname=nitter
pkgver=0_git20220513
_gitrev=683c052036b268028f0ecae020a1519bc586516d
pkgrel=0
pkgdesc="Alternative Twitter front-end "
url="https://github.com/zedeus/nitter/"
arch="all"
license="AGPL-3.0-only"
makedepends="libsass-dev nimble"
pkgusers="nitter"
pkggroups="nitter"
install="$pkgname.pre-install"
subpackages="$pkgname-openrc"
source="https://github.com/zedeus/nitter/archive/$_gitrev/nitter-$_gitrev.tar.gz
nitter.initd
"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"
build() {
nimble -y build -d:release
nimble -y scss
}
package() {
depends="redis"
install -Dm755 nitter -t "$pkgdir"/usr/bin
install -Dm755 "$srcdir"/nitter.initd "$pkgdir"/etc/init.d/nitter
install -Dm640 nitter.example.conf -t"$pkgdir"/var/lib/nitter
cp -a public "$pkgdir"/var/lib/nitter
chown -R nitter:nitter "$pkgdir"/var/lib/nitter
}
sha512sums="
9b804f686c4c6c0c11de93b3fbef3246df7133f9fc62c4dd73f33d8ec5709df1d8ee8eb8be26c0a4541b25bab60bf762c317855c2f0fc94e22a257182d52e65f nitter-683c052036b268028f0ecae020a1519bc586516d.tar.gz
7382562f40e50d13ba16adf17eb86b58b365474934bb33cbddf9117d4cc7ff12da9186edb01fd3c13b4efd91e35e57f368f056b376d03b4d5c6a191971a07ace nitter.initd
"