ayaports/apk/freshrss-wallabag/APKBUILD

48 lines
1.3 KiB
Text
Raw Normal View History

2018-10-03 04:50:04 +00:00
# Maintainer: Antoine Martin <antoine@ayakael.net>
pkgname=freshrss-wallabag
2018-10-03 16:32:05 +00:00
pkgver=0.1
2018-10-03 16:34:09 +00:00
pkgrel=1
2018-10-03 16:32:05 +00:00
pkgdesc="This FreshRSS extension adds a button to each article which adds the respective article to your Wallabag installation."
2018-10-03 04:50:04 +00:00
url="https://github.com/ayakael/dam"
arch="noarch"
license="GAGPL-3.0-only"
2018-10-03 16:32:05 +00:00
depends="freshrss wallabag"
makedepends="git"
2018-10-03 04:50:04 +00:00
source="$pkgname-$pkgver.tar.gz"
_giturl="https://git.n7r.de/nrb/freshrss-wallabag.git"
_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"
2018-10-03 05:03:02 +00:00
mkdir -p "${pkgdir}/usr/share/webapps/freshrss/extensions"
2018-10-03 05:01:27 +00:00
cp -R "${pkgname}" "${pkgdir}/usr/share/webapps/freshrss/extensions/"
2018-10-03 04:50:04 +00:00
}
2018-10-03 16:34:09 +00:00
sha512sums="6f7152f461f379c082357fa17fd4c56dd0129919d8527ffccaaeeb1bc63ec17a2c8d2a4cc9a9dd33bcc285ba3de692d534ad40867d7e0ade83aeeb0713a85d1d freshrss-wallabag-0.1.tar.gz"