ptrcports/nitter/APKBUILD

55 lines
1.6 KiB
Text
Raw Normal View History

2022-05-28 07:44:20 +00:00
# Maintainer: psykose <alice@ayaya.dev>
pkgname=nitter
pkgver=0_git20230701
_gitrev=dcf73354ff173c0407c62f84ea3bb90a130303c1
pkgrel=0
pkgdesc="Alternative Twitter front-end"
2022-05-28 07:44:20 +00:00
url="https://github.com/zedeus/nitter/"
2023-05-03 01:11:45 +00:00
arch="aarch64 x86_64"
2022-05-28 07:44:20 +00:00
license="AGPL-3.0-only"
2023-04-05 02:36:54 +00:00
depends="libssl3 libcrypto3 pcre"
makedepends="libsass-dev nimble pcre-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
2023-04-05 03:56:22 +00:00
downgrade-zippy.patch
2022-05-28 07:44:20 +00:00
nitter.initd
"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"
2023-04-05 02:33:39 +00:00
prepare() {
default_prepare
git init -q
2023-04-05 02:33:39 +00:00
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="
81cb5267f3d978c7cb2bc07d60bd8aca0caa94c98a3bd55609dbfd3acd79949948345e5e9aa5b0fd9decea2239cd8300d872a74cede2c644746bca83c26c3546 nitter-dcf73354ff173c0407c62f84ea3bb90a130303c1.tar.gz
2023-04-05 03:56:22 +00:00
63370212985d3ef5d27f9604b75690cc4939fd66386c097d9ea3c25da57034d86a71e04f79716683aa4f8a4fe88dbebaf2ace62395f95753d7a8b622ac754d88 downgrade-zippy.patch
2022-05-28 07:44:20 +00:00
7382562f40e50d13ba16adf17eb86b58b365474934bb33cbddf9117d4cc7ff12da9186edb01fd3c13b4efd91e35e57f368f056b376d03b4d5c6a191971a07ace nitter.initd
"