Last active
October 25, 2018 15:43
-
-
Save yegorius/f76f9c2ed017ea0d1245b97b7c03974a to your computer and use it in GitHub Desktop.
PKGBUILD for Station
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
pkgname=station | |
pkgver=1.26.0 | |
pkgrel=1 | |
pkgdesc='The one app to rule them all' | |
arch=('x86_64') | |
url='https://getstation.com/' | |
license=('MIT') | |
#depends=('gtk2' 'gconf' 'xdg-utils' 'libxtst' 'libxss' 'nss' 'alsa-lib' 'xdg-utils') | |
source=( | |
"https://github.com/getstation/desktop-app-releases/releases/download/${pkgver}/browserX-${pkgver}-x86_64.AppImage" | |
) | |
sha256sums=('4c1f5901c557ac734763db7386cba5924a50d78c156ef89262edfcd8223d6be4') | |
prepare() { | |
chmod u+x ./browserX-${pkgver}-${arch}.AppImage | |
./browserX-${pkgver}-${arch}.AppImage --appimage-extract | |
} | |
package() { | |
install -dm755 "${pkgdir}/usr/lib" | |
install -dm755 "${pkgdir}/usr/share" | |
install -dm755 "${pkgdir}/usr/bin" | |
install -dm755 "${pkgdir}/usr/share/applications" | |
cp -a "${srcdir}/squashfs-root" "${pkgdir}/usr/lib/${pkgname}" | |
find "${pkgdir}/usr/lib/${pkgname}" -type d -exec chmod 755 "{}" \; | |
cp -a "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share" | |
chmod -R 755 "${pkgdir}/usr/share/icons" | |
sed -i -e 's/AppRun/station/' "${pkgdir}/usr/lib/${pkgname}/browserx.desktop" | |
ln -s "/usr/lib/${pkgname}/browserx.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" | |
ln -s "/usr/lib/${pkgname}/browserx" "${pkgdir}/usr/bin/${pkgname}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment