Initial upload: gofile-downloader-git r16.465ef97-1

This commit is contained in:
Magnus Boman 2022-08-13 11:58:33 +02:00
commit d8c23563e9
2 changed files with 49 additions and 0 deletions

20
.SRCINFO Normal file
View file

@ -0,0 +1,20 @@
pkgbase = gofile-downloader-git
pkgdesc = Download files from https://gofile.io
pkgver = r16.465ef97
pkgrel = 1
url = https://github.com/ltsdw/gofile-downloader
arch = any
license = GPL3
makedepends = git
depends = python
depends = python-certifi
depends = python-charset-normalizer
depends = python-idna
depends = python-requests
depends = python-urllib3
provides = gofile-downloader
conflicts = gofile-downloader
source = git+https://github.com/ltsdw/gofile-downloader.git
md5sums = SKIP
pkgname = gofile-downloader-git

29
PKGBUILD Normal file
View file

@ -0,0 +1,29 @@
# Maintainer: katt <magunasu.b97@gmail.com>
pkgname=gofile-downloader-git
pkgver=r16.465ef97
pkgrel=1
pkgdesc='Download files from https://gofile.io'
arch=(any)
url=https://github.com/ltsdw/gofile-downloader
license=(GPL3)
depends=(python python-certifi python-charset-normalizer python-idna python-requests python-urllib3)
makedepends=(git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(git+"${url}".git)
md5sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
# Add missing shebang
sed -i '1 i #!/usr/bin/env python3' "${pkgname%-git}"/"${pkgname%-git}".py
}
package() {
install -Dm755 "${pkgname%-git}/${pkgname%-git}.py" "${pkgdir}/usr/bin/${pkgname%-git}"
}