question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

could you please create a package in aur that people who are working with yaourt package manager can install and update it automatically?

there is already a package for this but its version is old

https://aur.archlinux.org

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
alyyassercommented, Jun 29, 2018

maybe someone need this, here’s modified version of PKGBUILD that i used to install the latest version from this repo

_pkgname='github-desktop'
pkgname="${_pkgname}"
pkgver=1.2.6
gitname="release-${pkgver//_/-}"
pkgrel=1
pkgdesc="GUI for managing Git and GitHub."
arch=('x86_64')
url="https://desktop.github.com"
license=('MIT')
depends=('gnome-keyring' 'git' 'electron' 'nodejs' 'libcurl-compat' 'libcurl-gnutls')
optdepends=('hub: CLI interface for GitHub.')
makedepends=('libcurl-openssl-1.0' 'xorg-server-xvfb' 'yarn' 'python2' 'nvm')
DLAGENTS=("http::/usr/bin/git clone --branch ${gitname} --single-branch %u")
source=(
  git+https://github.com/shiftkey/desktop.git#tag=${gitname}
  ${_pkgname}.desktop
)
sha256sums=(
  'SKIP'
  be057e4a392e64760f7a40203ac886b7cf5551de254ad55c706376dca8aa4341
)
build() {
  cd desktop
  unset npm_config_prefix
  source /usr/share/nvm/init-nvm.sh
  nvm install --lts  
  nvm use --lts
  export DISPLAY=':99.0'
  Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
  yarn install
  yarn build:prod
  nvm deactivate
}
package() {
  install -d "${pkgdir}/opt/${_pkgname}"
  cp -r --preserve=mode desktop/dist/desktop-linux-x64/* "${pkgdir}/opt/${_pkgname}/"
  printf '#!/bin/sh\n\nLD_PRELOAD=libcurl.so.3 /opt/github-desktop/desktop "$@"\n' | install -Dm755 /dev/stdin "${pkgdir}/usr/bin/github-desktop"
  install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
  install -Dm644 "desktop/app/static/logos/1024x1024.png" "${pkgdir}/usr/share/icons/hicolor/1024x1024/apps/${_pkgname}.png"
  install -Dm644 "desktop/app/static/logos/512x512.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${_pkgname}.png"
  install -Dm644 "desktop/app/static/logos/256x256.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/${_pkgname}.png"
}
0reactions
shiftkeycommented, Jul 22, 2018

I’m going to close this out for now because this is a community-based effort, and I don’t want to come in over the top and add more problems while things are being figured out. But let me know if this still isn’t resolved in a few months and we can revisit it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AUR (en) - Packages - Arch Linux
Name Version Votes Popularity ? Maintainer octopi 0.14.0‑2 1138 45.86 matmoul octopi‑dev 0.14.0‑2 787 43.15 matmoul alpm_octopi_utils 1.0.2‑3 868 38.59 matmoul
Read more >
How to Use AUR with Arch Linux
It's a community-driven repository for the Arch Linux system that hosts a number of packages outside the official Arch Linux package database. Popular...
Read more >
Install packages in Arch Linux from AUR - Tutorials and How To
AUR (Arch User Repository) is a community-driven repository for Arch Linux users. AUR was created with the sole objective of organizing and sharing...
Read more >
What Is the Arch User Repository (AUR)? Everything You ...
The Arch User Repository is a community-driven package repository developed by Arch users for Arch users. If you don't find a package in...
Read more >
What is Arch User Repository (AUR)? How to Use ... - It's FOSS
AUR stands for Arch User Repository. It is a community-driven repository for Arch-based Linux distributions users. It contains package ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found