makedeb
Simple Subreddit Image Downloader in bash
Viewing /PKGBUILD
.
Click here to go back to the Git tree for download-subreddit-images-git.
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
_pkgname=download-subreddit-images
_githubname='Simple-Subreddit-Image-Downloader'
pkgname="${_pkgname}-git"
pkgver=0.r2.ad583c6
pkgrel=1
pkgdesc="Simple Subreddit Image Downloader in bash"
arch=('all')
makedepends=('git')
depends=('bash' 'curl' 'jq' 'sed' 'coreutils')
license=('GPL2')
url="https://github.com/ostrolucky/${_githubname}"
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git")
b2sums=('SKIP')
pkgver() {
cd "${srcdir}/${_githubname}"
printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git describe --long --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
}
package() {
cd "${srcdir}/${_githubname}"
# script
install -Dm755 "${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}"
# docs
install -Dm644 README.md "${pkgdir}/usr/share/doc/${_pkgname}/readme"
_license_path="/usr/share/common-licenses/GPL-2"
ln -s "${_license_path}" "${pkgdir}/usr/share/doc/${_pkgname}/"
}