initial commit
This commit is contained in:
51
PKGBUILD
Normal file
51
PKGBUILD
Normal file
@@ -0,0 +1,51 @@
|
||||
# Maintainer: Fredy García <frealgagu at gmail dot com>
|
||||
|
||||
pkgname=focusmate-nativefier
|
||||
pkgver=1.0
|
||||
pkgrel=1
|
||||
pkgdesc="Habitica built with nativefier (electron)"
|
||||
arch=("armv7l" "i686" "x86_64")
|
||||
url="https://focusmate.com"
|
||||
license=("custom")
|
||||
depends=("gtk3" "libxss" "nss")
|
||||
optdepends=("libindicator-gtk3")
|
||||
makedepends=("imagemagick" "nodejs-nativefier" "unzip")
|
||||
source=(
|
||||
"${pkgname}.png"
|
||||
"${pkgname}.desktop"
|
||||
)
|
||||
sha256sums=(
|
||||
"d950bb1a831d6eeeaf5204fdeb3447d2df8c8b9bb0074c08f7bcaaa104bae2bd"
|
||||
"73be80a594bff637afd034b1fda5a6788772335a5bc55785409ee36f90fbef85"
|
||||
)
|
||||
|
||||
build() {
|
||||
cd "${srcdir}"
|
||||
|
||||
nativefier \
|
||||
--name "Focusmate" \
|
||||
--icon "${pkgname}.png" \
|
||||
--width "800px" \
|
||||
--height "600px" \
|
||||
--user-agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Chrome/102.0.0.0 Safari/605.1.15" \
|
||||
--verbose \
|
||||
--single-instance \
|
||||
"${url}"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -dm755 "${pkgdir}/"{opt,usr/{bin,share/{applications,licenses/${pkgname}}}}
|
||||
|
||||
_folder=$(ls "${srcdir}" | grep "[Ff]ocusmate-linux-")
|
||||
_binary=$(ls "${srcdir}/${_folder}" | grep "[Ff]ocusmate")
|
||||
|
||||
cp -rL "${srcdir}/${_folder}" "${pkgdir}/opt/${pkgname}"
|
||||
ln -s "/opt/${pkgname}/${_binary}" "${pkgdir}/usr/bin/${pkgname}"
|
||||
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
||||
install -Dm644 "${pkgdir}/opt/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
for _size in "192x192" "128x128" "96x96" "64x64" "48x48" "32x32" "24x24" "22x22" "20x20" "16x16" "8x8"; do
|
||||
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${_size}/apps"
|
||||
convert "${srcdir}/${pkgname}.png" -strip -resize "${_size}" "${pkgdir}/usr/share/icons/hicolor/${_size}/apps/${pkgname}.png"
|
||||
done
|
||||
}
|
||||
|
||||
16
focusmate-nativefier.desktop
Normal file
16
focusmate-nativefier.desktop
Normal file
@@ -0,0 +1,16 @@
|
||||
[Desktop Entry]
|
||||
Comment=
|
||||
Exec=focusmate-nativefier
|
||||
Icon=focusmate-nativefier
|
||||
Name=Focusmate
|
||||
Comment=Focusmate built with nativefier (electron)
|
||||
Encoding=UTF-8
|
||||
NoDisplay=false
|
||||
Path[$e]=
|
||||
StartupNotify=true
|
||||
Terminal=0
|
||||
TerminalOptions=
|
||||
Type=Application
|
||||
X-KDE-SubstituteUID=false
|
||||
X-KDE-Username=
|
||||
Categories=Network;
|
||||
BIN
focusmate-nativefier.png
Normal file
BIN
focusmate-nativefier.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 491 B |
Reference in New Issue
Block a user