upgpkg: gofile-downloader-git r17.41119d8-1: Drop shebang patch

Upstream added shebang to the script
This commit is contained in:
Magnus Boman 2022-08-13 21:48:50 +02:00
parent d8c23563e9
commit e7c7430458
2 changed files with 2 additions and 7 deletions

View file

@ -1,6 +1,6 @@
pkgbase = gofile-downloader-git
pkgdesc = Download files from https://gofile.io
pkgver = r16.465ef97
pkgver = r17.41119d8
pkgrel = 1
url = https://github.com/ltsdw/gofile-downloader
arch = any

View file

@ -1,7 +1,7 @@
# Maintainer: katt <magunasu.b97@gmail.com>
pkgname=gofile-downloader-git
pkgver=r16.465ef97
pkgver=r17.41119d8
pkgrel=1
pkgdesc='Download files from https://gofile.io'
arch=(any)
@ -19,11 +19,6 @@ pkgver() {
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}"
}