diff options
author | Mark Wagie | 2020-09-01 16:24:10 -0600 |
---|---|---|
committer | Mark Wagie | 2020-09-01 16:24:10 -0600 |
commit | 4f637208169b264025d1e099da9d7031c2da8012 (patch) | |
tree | 15bffd6ba0fb9b20c4facab1241cda9387434cf5 | |
parent | 4b01f26887e218652cce43f77844f9008431f1ca (diff) | |
download | aur-4f637208169b264025d1e099da9d7031c2da8012.tar.gz |
fix binary shebang
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = webapp-manager-git pkgdesc = Run websites as if they were apps. pkgver = 1.0.3.r30.331c47f - pkgrel = 1 + pkgrel = 2 url = https://github.com/linuxmint/webapp-manager arch = x86_64 license = GPL @@ -1,7 +1,7 @@ # Maintainer: Mark Wagie <mark dot wagie at tutanota dot com> pkgname=webapp-manager-git pkgver=1.0.3.r30.331c47f -pkgrel=1 +pkgrel=2 pkgdesc="Run websites as if they were apps." arch=('x86_64') url="https://github.com/linuxmint/webapp-manager" @@ -22,12 +22,19 @@ pkgver() { prepare() { cd "$srcdir/${pkgname%-git}" + + # Fix binary shebang + sed -i 's/#\/bin\/sh/#!\/bin\/sh/g' "usr/bin/${pkgname%-git}" + + # Fix browser names sed -i 's/brave-browser/brave/g' \ "usr/lib/${pkgname%-git}/${pkgname%-git}.py" sed -i 's/chromium-browser/chromium/g' \ usr/lib/"${pkgname%-git}"/{common.py,"${pkgname%-git}.py"} sed -i 's/epiphany-browser/epiphany/g' \ "usr/lib/${pkgname%-git}/${pkgname%-git}.py" + + # Fix license path sed -i 's/common-licenses/licenses\/common/g' \ "usr/lib/${pkgname%-git}/${pkgname%-git}.py" } |