diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ecc734b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Schimon Jehudah Zachary +_pkgname=feedr +pkgname=feedr-git +pkgver=r4.8843435 +pkgrel=1 +pkgdesc="Open syndication feed files from desktop." +arch=('any') +url="https://git.xmpp-it.net/sch/Feedr" +license=('MIT') +depends=('sh') +makedepends=('git') +#provides=("${pkgname%}") +#conflicts=("${pkgname%}") +source=('feedr-git::git+https://git.xmpp-it.net/sch/Feedr') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + mkdir -p "$pkgdir/usr/share/$_pkgname/css/" + mkdir -p "$pkgdir/usr/share/$_pkgname/xsl/" + install -D -m644 "$srcdir/${pkgname}/css/"* "$pkgdir/usr/share/$_pkgname/css/" + install -D -m644 "$srcdir/${pkgname}/xsl/"* "$pkgdir/usr/share/$_pkgname/xsl/" + install -D -m644 "$srcdir/${pkgname}/LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE" + install -D -m644 "$srcdir/${pkgname}/README.md" "$pkgdir/usr/share/doc/$_pkgname/README.md" + install -D -m755 "$srcdir/${pkgname}/feedr.sh" "$pkgdir/usr/bin/feedr" +}