2022-05-28 07:44:20 +00:00
|
|
|
# Maintainer: psykose <alice@ayaya.dev>
|
|
|
|
pkgname=nitter
|
2023-04-05 02:33:39 +00:00
|
|
|
pkgver=0_git20230328
|
|
|
|
_gitrev=95893eedaa2fb0ca0a0a15257d81b720f7f3eb67
|
|
|
|
pkgrel=0
|
2022-05-28 07:44:20 +00:00
|
|
|
pkgdesc="Alternative Twitter front-end "
|
|
|
|
url="https://github.com/zedeus/nitter/"
|
|
|
|
arch="all"
|
|
|
|
license="AGPL-3.0-only"
|
2023-04-05 02:33:39 +00:00
|
|
|
depends="libssl3 libcrypto3 pcre2"
|
|
|
|
makedepends="libsass-dev nimble pcre2-dev"
|
2022-05-28 07:44:20 +00:00
|
|
|
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"
|
|
|
|
|
2023-04-05 02:33:39 +00:00
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
git init
|
|
|
|
git config user.name a
|
|
|
|
git config user.email a.a
|
|
|
|
git add .
|
|
|
|
git commit -m init
|
|
|
|
}
|
|
|
|
|
2022-05-28 07:44:20 +00:00
|
|
|
build() {
|
|
|
|
nimble -y build -d:release
|
|
|
|
nimble -y scss
|
2022-08-29 12:54:33 +00:00
|
|
|
nimble -y md
|
2022-05-28 07:44:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-08-09 17:42:34 +00:00
|
|
|
depends="$depends redis"
|
2022-05-28 07:44:20 +00:00
|
|
|
|
|
|
|
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="
|
2023-04-05 02:33:39 +00:00
|
|
|
f64fa342fe4ffdcdab27d64b47d47ecc44ddb59cb106aad884e9988e7c1d64d37152df2a7e97db0e2f5b96a89da1e8bec6282e4add094662bcbb107c49cf1d06 nitter-95893eedaa2fb0ca0a0a15257d81b720f7f3eb67.tar.gz
|
2022-05-28 07:44:20 +00:00
|
|
|
7382562f40e50d13ba16adf17eb86b58b365474934bb33cbddf9117d4cc7ff12da9186edb01fd3c13b4efd91e35e57f368f056b376d03b4d5c6a191971a07ace nitter.initd
|
|
|
|
"
|