7791d981d1
Added freshrss-imageproxy-0.4-0 Added freshrss-readingtime-1.0-0
50 lines
1.3 KiB
Text
50 lines
1.3 KiB
Text
# Maintainer: Antoine Martin <antoine@ayakael.net>
|
|
pkgname=freshrss-imageproxy
|
|
pkgver=0.4
|
|
pkgrel=0
|
|
pkgdesc="https://github.com/FreshRSS/Extensions/tree/master/xExtension-ImageProxy"
|
|
url="https://github.com/ayakael/dam"
|
|
arch="noarch"
|
|
license="GPL-3.0-only"
|
|
depends="freshrss"
|
|
makedepends="git"
|
|
source="$pkgname-$pkgver.tar.gz"
|
|
_giturl="https://github.com/FreshRSS/Extensions"
|
|
_gittag="master"
|
|
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="8aed100d05782a2ffd19d95fcec884ca24e323a65a06b8ba4ee0207a08f18d4148c2cd8c1cdde65aeac7f7e2d9483f06e6b13852da4eb8e95436d10f524985b0 freshrss-imageproxy-0.4.tar.gz"
|
|
|