43 lines
1.3 KiB
Text
43 lines
1.3 KiB
Text
# Maintainer: psykose <alice@ayaya.dev>
|
|
pkgname=nitter
|
|
pkgver=0_git20220921
|
|
_gitrev=2ac3afa5b273a502d7632e9346c7c3bc9283fb48
|
|
pkgrel=0
|
|
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
|
|
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="
|
|
874645f9aa1b309682c693ff8c87a565cece854758425468ca63070a884a58508f7ae450e472d1fb75188549beae29d8ca058d5c53900b1fa37e8540b4e096fd nitter-2ac3afa5b273a502d7632e9346c7c3bc9283fb48.tar.gz
|
|
7382562f40e50d13ba16adf17eb86b58b365474934bb33cbddf9117d4cc7ff12da9186edb01fd3c13b4efd91e35e57f368f056b376d03b4d5c6a191971a07ace nitter.initd
|
|
"
|