ayaports/user/freshrss-imageproxy/APKBUILD
2022-07-29 15:47:03 +00:00

50 lines
1.3 KiB
Text

# Maintainer: Antoine Martin <antoine@ayakael.net>
pkgname=freshrss-imageproxy
pkgver=0.5.1
pkgrel=1
pkgdesc="No insecure content warnings or disappearing images"
url="https://github.com/FreshRSS/Extensions"
arch="noarch"
license="GPL-3.0-only"
depends="freshrss"
makedepends="git"
source="$pkgname-$pkgver.tar.gz"
_giturl="https://github.com/FreshRSS/Extensions"
_gittag="c233bf5"
builddir="$srcdir"
options="!check"
snapshot() {
mkdir -p "$srcdir"
cd "${SRCDEST:-$srcdir}"
if ! [ -d $pkgname.git ]; then
git clone $_giturl $pkgname.git || return 1
cd $pkgname.git
else
cd $pkgname.git
git fetch || return 1
fi
echo "Checking out"
git checkout $_gittag
echo "Repo archive"
git archive --prefix="$pkgname/" -o ${pkgname}-${pkgver}.tar --format "tar" $_gittag
gzip ${pkgname}-${pkgver}.tar -c > "$SRCDEST"/$pkgname-$pkgver.tar.gz
ln -s "$SRCDEST"/$pkgname-$pkgver.tar.gz "$startdir"/$pkgname-$pkgver.tar.gz
}
build() {
return 0
}
package() {
cd "$builddir"
mkdir -p "${pkgdir}/usr/share/webapps/freshrss/extensions"
cp -R "${pkgname}/xExtension-ImageProxy" "${pkgdir}/usr/share/webapps/freshrss/extensions/"
}
sha512sums="9b07f4050ad06ff10ad6e35bc105d4778597cc9d6ecaa033fa8b414c0f7de3c85db02b14d28503a2c5e9be205abf7c740eba804d9035ef005afc4fc407096c4f freshrss-imageproxy-0.5.1.tar.gz"