ptrcports/nitter/APKBUILD
2022-12-13 19:11:34 +01:00

45 lines
1.4 KiB
Text

# Maintainer: psykose <alice@ayaya.dev>
pkgname=nitter
pkgver=0_git20221127
_gitrev=d923c20aa6a87224343562f15b00e72e7780aa3d
pkgrel=1
pkgdesc="Alternative Twitter front-end "
url="https://github.com/zedeus/nitter/"
arch="all"
license="AGPL-3.0-only"
depends="libssl1.1 libcrypto1.1 pcre"
makedepends="libsass-dev nimble pcre-dev"
pkgusers="nitter"
pkggroups="nitter"
install="$pkgname.pre-install"
subpackages="$pkgname-openrc"
source="https://github.com/zedeus/nitter/archive/$_gitrev/nitter-$_gitrev.tar.gz
downgrade-zippy.patch
nitter.initd
"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"
build() {
nimble -y build -d:release
nimble -y scss
nimble -y md
}
package() {
depends="$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="
74aca0d7a8923b0ebc29fb938e70a094d9a707477e89c320d919bb75869e1532af3ef19144d566d2568f73331a8b380de144c6148a6ddc1016a982e216d7e3f3 nitter-d923c20aa6a87224343562f15b00e72e7780aa3d.tar.gz
975ab7e9e89c375729b5623de938583385335b1b8fb0ce09bf470ed66e920cb03cf27505d495d3aeb6d2f1dafdb88fe0a6978255883d2167e0a073e896f3e7e3 downgrade-zippy.patch
7382562f40e50d13ba16adf17eb86b58b365474934bb33cbddf9117d4cc7ff12da9186edb01fd3c13b4efd91e35e57f368f056b376d03b4d5c6a191971a07ace nitter.initd
"