Created
June 26, 2023 21:37
-
-
Save AkechiShiro/ddd7b71b3d1d9bd19d80f139bea82600 to your computer and use it in GitHub Desktop.
PKGBUILD quick fix 26June2023
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Lahfa Samy <'akechishiro-aur' at 'lahfa[dot]xyz'> | |
# Contributor: Felix Golatofski <contact@xdfr.de> | |
# Contributor: Sebastian Wieland <wieland.s[at]online[dot]de> | |
_pkgname=nextcloud | |
pkgname=${_pkgname}-client-appimage-daily | |
pkgver=3.8.50.20230626 | |
_appimgname=linux-${pkgver##*.} | |
pkgrel=1 | |
epoch=1 | |
pkgdesc="Nextcloud desktop client (official daily AppImage build)" | |
arch=('x86_64' 'i686') | |
url="https://download.nextcloud.com/desktop/daily/linux" | |
license=('GPL2') | |
provides=('nextcloud-client') | |
conflicts=('nextcloud-client' 'nextcloud-client-git' 'owncloud-client') | |
depends=('zlib') | |
optdepends=('hicolor-icon-theme: needed for hicolor theme hierarchy') | |
makedepends=('p7zip' 'curl') | |
noextract=("$_appimgname.AppImage") | |
options=('!strip') | |
source=(${_pkgname}-${pkgver}.AppImage::${url}/${_appimgname}.AppImage) | |
sha256sums=('cff72fed3658af0335212201cfa09c3867dd4ce19020b6f6fec901e29783a34a') | |
prepare() { | |
cd "${srcdir}" | |
# Extract relevant files from AppImage | |
7z x -y ${_pkgname}-${pkgver}.AppImage usr/share/icons > /dev/null | |
7z x -y ${_pkgname}-${pkgver}.AppImage com.${_pkgname}.desktopclient.${_pkgname}.desktop > /dev/null | |
} | |
package() { | |
cd "${srcdir}" | |
# Copy Icons | |
install -dm644 "${pkgdir}/usr/share/icons" | |
cp -dpr --no-preserve=ownership "usr/share/icons" "${pkgdir}/usr/share" | |
find "${pkgdir}/usr/share/icons" -type d -exec chmod 755 {} \; | |
# Install to /opt/appimage/ | |
install -Dm644 "com.${_pkgname}.desktopclient.${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" | |
install -Dm755 "${_pkgname}-${pkgver}.AppImage" "${pkgdir}/opt/appimages/${_pkgname}.AppImage" | |
# Create Link in /usr/bin/ | |
install -d "${pkgdir}/usr/bin" | |
ln -s "/opt/appimages/${_pkgname}.AppImage" "${pkgdir}/usr/bin/${_pkgname}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment