blob: b5286adcfbb352b6e49ce69c847673bb742c1844 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Felix Golatofski <contact@xdfr.de>
# Contributor: Sebastian Wieland <wieland.s[at]online[dot]de>
_pkgname=nextcloud
pkgname=${_pkgname}-client-appimage-daily
pkgver=3.2.50.20210503
pkgrel=3
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=("$_pkgname.AppImage")
options=('!strip')
source=(${_pkgname}-${pkgver}.AppImage::${url}/Nextcloud-${pkgver}-daily-x86_64.AppImage)
sha256sums=('6da02eee4e357e8b23da8f934740ecee2a4e3dcf74ea74432d6f2689b8f9001a')
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}-${pkgver}.AppImage"
# Create Link in /usr/bin/
install -d "${pkgdir}/usr/bin"
ln -s "/opt/appimages/${_pkgname}-${pkgver}.AppImage" "${pkgdir}/usr/bin/${_pkgname}"
}
|