# Maintainer: Antoine Martin pkgname=freshrss-youtubechannel2rssfeed pkgver=0.2.1 pkgrel=0 pkgdesc="Transfer YouTube Channel URL into RSS Feed URL." url="https://github.com/cn-tools/cntools_FreshRssExtensions" arch="noarch" license="MIT" depends="freshrss" makedepends="git" source="$pkgname-$pkgver.tar.gz" _giturl="https://github.com/cn-tools/cntools_FreshRssExtensions" _gittag="92f2048a9a27b7fb18054caf31ecc84d271882a0" 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-YouTubeChannel2RssFeed" "${pkgdir}/usr/share/webapps/freshrss/extensions/" } sha512sums="100299ab4d9a52522dc08663157f4a0d0e95c5040fbc3ee495d2b0075c3de1b5acc741cfcb7b760767e5e701639ea41f0a85d1c2824c48f0011e3cb400781714 freshrss-youtubechannel2rssfeed-0.2.1.tar.gz"