summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 517274a313df457f95e2a35177ea828f123f5790 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com

_pkgname=sf-down
pkgname=${_pkgname}-git
pkgver=r9.a7cc380
pkgrel=1
pkgdesc="Allows you to download all of a SourceForge project's files"
arch=(any)
license=(unknown)
url="https://github.com/SpiritQuaddicted/sourceforge-file-download"
depends=(bash wget)
makedepends=(git)
source=("$pkgname::git+https://github.com/SpiritQuaddicted/sourceforge-file-download.git")
sha256sums=('SKIP')

pkgver() {
    cd "${pkgname}"

    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "${pkgname}"

    install -Dm755 sourceforge-file-downloader.sh "${pkgdir}/usr/bin/sf-down"
}