54 lines
1.6 KiB
Text
54 lines
1.6 KiB
Text
# Maintainer: psykose <alice@ayaya.dev>
|
|
pkgname=nitter
|
|
pkgver=0_git20230530
|
|
_gitrev=38985af6ed30f050201b15425cdac0dc2e286b6d
|
|
pkgrel=0
|
|
pkgdesc="Alternative Twitter front-end"
|
|
url="https://github.com/zedeus/nitter/"
|
|
arch="aarch64 x86_64"
|
|
license="AGPL-3.0-only"
|
|
depends="libssl3 libcrypto3 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"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
git init -q
|
|
git config user.name a
|
|
git config user.email a.a
|
|
git add .
|
|
git commit -m init
|
|
}
|
|
|
|
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="
|
|
2d7a96dce756782402ebde405f9404377836b7be347b84e4e0f3ef1abec036f0b67ee1750fe97c76906932912da86a736f61b47274191839b6c32c7b3bf8a372 nitter-38985af6ed30f050201b15425cdac0dc2e286b6d.tar.gz
|
|
63370212985d3ef5d27f9604b75690cc4939fd66386c097d9ea3c25da57034d86a71e04f79716683aa4f8a4fe88dbebaf2ace62395f95753d7a8b622ac754d88 downgrade-zippy.patch
|
|
7382562f40e50d13ba16adf17eb86b58b365474934bb33cbddf9117d4cc7ff12da9186edb01fd3c13b4efd91e35e57f368f056b376d03b4d5c6a191971a07ace nitter.initd
|
|
"
|