diff options
author | Alexey Peschany | 2022-04-17 13:17:01 +0300 |
---|---|---|
committer | Alexey Peschany | 2022-04-17 13:17:01 +0300 |
commit | c32906ee69070d89363fcb598804194911a60cac (patch) | |
tree | 192b2bb898d5441a0ff5d3ccf3178f1f07bb9766 | |
parent | 46710bd0f20a831823f526b7a12e7a9db7fe5248 (diff) | |
download | aur-c32906ee69070d89363fcb598804194911a60cac.tar.gz |
Add desktop file to launch webcatalog
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 19 | ||||
-rw-r--r-- | webcatalog.patch | 10 |
3 files changed, 28 insertions, 5 deletions
@@ -1,11 +1,13 @@ pkgbase = webcatalog-bin pkgdesc = Turn Any Websites into Real Desktop Apps pkgver = 42.2.0 - pkgrel = 1 + pkgrel = 2 url = https://webcatalog.io/webcatalog/ arch = x86_64 options = !strip source = https://cdn-2.webcatalog.io/webcatalog/WebCatalog-42.2.0.AppImage + source = webcatalog.patch sha256sums = 5abf0ae99fa5ceacf40d080e2112479ace763331eba3d648fad633ff55a8c765 + sha256sums = 8e13556f9eab7880fbc586d625147e7602d8d99cf0f23a6a130e0eb821a9a7fd pkgname = webcatalog-bin @@ -1,15 +1,22 @@ # Maintainer: Alexey Peschany <archlinux at sandboiii dot xyz> pkgname=webcatalog-bin +_pkgname=webcatalog pkgver=42.2.0 -pkgrel=1 +pkgrel=2 pkgdesc="Turn Any Websites into Real Desktop Apps" arch=('x86_64') url="https://webcatalog.io/webcatalog/" options=('!strip') _filename="WebCatalog-$pkgver.AppImage" -source=("https://cdn-2.webcatalog.io/webcatalog/$_filename") -sha256sums=('5abf0ae99fa5ceacf40d080e2112479ace763331eba3d648fad633ff55a8c765') +source=( + "https://cdn-2.webcatalog.io/$_pkgname/$_filename" + "${_pkgname}.patch" +) +sha256sums=( + '5abf0ae99fa5ceacf40d080e2112479ace763331eba3d648fad633ff55a8c765' + '8e13556f9eab7880fbc586d625147e7602d8d99cf0f23a6a130e0eb821a9a7fd' +) prepare() { cd "${srcdir}" @@ -20,8 +27,12 @@ prepare() { package() { install -Dm755 "${srcdir}/${_filename}" "${pkgdir}/opt/appimages/${_filename}.AppImage" mkdir -p "${pkgdir}/usr/bin/" - ln -s "/opt/appimages/${_filename}.AppImage" "${pkgdir}/usr/bin/webcatalog" + ln -s "/opt/appimages/${_filename}.AppImage" "${pkgdir}/usr/bin/${_pkgname}" install -dm755 "${pkgdir}/usr/share/" cp -r --no-preserve=mode,ownership "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/" + + mkdir "${pkgdir}/usr/share/applications/" + cp --no-preserve=mode,ownership "${srcdir}/squashfs-root/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/" + patch -d "${pkgdir}" -p1 < "${_pkgname}.patch" } diff --git a/webcatalog.patch b/webcatalog.patch new file mode 100644 index 000000000000..611517cdaafd --- /dev/null +++ b/webcatalog.patch @@ -0,0 +1,10 @@ +--- a/usr/share/applications/webcatalog.desktop 2022-04-17 12:09:50.831174586 +0300 ++++ b/usr/share/applications/webcatalog.desktop 2022-04-17 12:10:30.774235936 +0300 +@@ -1,6 +1,6 @@ + [Desktop Entry] + Name=WebCatalog +-Exec=AppRun --no-sandbox %U ++Exec=webcatalog %U + Terminal=false + Type=Application + Icon=webcatalog |