blob: 47559bc2d4dda9877bf9e3a1d473105ca8218371 (
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
|
# Maintainer: Braden Mars <bradenmars@bradenmars.me>
pkgname=polypane
_pkgname=Polypane
pkgver=22.0.0
pkgrel=1
pkgdesc="Browser for building responsive websites and apps."
arch=('x86_64' 'i686')
url="https://polypane.app"
license=('https://polypane.app/legal/')
sha256sums=('9b56a59cae69e51567fe6e2d141d811bfb0534e1818ed24fac4fe92612dae4dd')
makedepends=('p7zip' 'curl' 'jq')
noextract=("$_pkgname-${pkgver}.AppImage")
options=('!strip')
source=(${_pkgname}-${pkgver}.AppImage::https://github.com/firstversionist/polypane/releases/download/v${pkgver}/polypane-${pkgver}.AppImage)
prepare() {
cd "${srcdir}"
# Extract AppImage Files
7z x -y ${_pkgname}-${pkgver}.AppImage usr/share/icons > /dev/null
7z x -y ${_pkgname}-${pkgver}.AppImage ${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/
sed -i "s/ (${pkgver})//" "${pkgname}.desktop" # prevent multiple .desktop entries
install -Dm644 "${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}"
}
|