Created
March 22, 2018 05:09
-
-
Save rfvgyhn/81050162ffc0686c88161bbfc4dc81a1 to your computer and use it in GitHub Desktop.
Rider-2018.1-EAP3 AUR PKGBUILD
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
# Maintainer: Giampaolo Mancini <mancho at trmpln dot com> | |
# Contributor: wenLiangcan <boxeed at gmail dot com> | |
# Contributor: Dustin Falgout <dustin@falgout.us> | |
# Contributor: Gifts <gifts.antichat@gmail.com> | |
# Contributor: Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com> | |
pkgname=rider-eap | |
_buildver=181.4035.533 | |
_pkgver=2018.1-EAP3 | |
_eap="True" | |
pkgver="${_pkgver//-/.}.${_buildver}" | |
pkgrel=1 | |
epoch=1 | |
pkgdesc="A cross-platform C# IDE by JetBrains." | |
arch=('any') | |
options=('!strip') | |
url="https://www.jetbrains.com/rider/" | |
license=("custom") | |
optdepends=('mono: .NET runtime' 'msbuild-15-bin: build .NET Core projects') | |
makedepends=("wget") | |
provides=("rider") | |
conflicts=("rider") | |
groups=("development" "IDE" "editor" "jetbrains") | |
_srcfile="JetBrains.Rider-${_pkgver}-${_buildver}.Checked.tar.gz" | |
source=("https://download-cf.jetbrains.com/rider/${_srcfile}" | |
"${pkgname}.desktop") | |
sha256sums=('bd04d3973c8505d4ecc42b3b3d64ddb513041c53ee2f76fb8aff54379c937af1' # wget returns 403 for me causing build to fail | |
'f9311f901c27f3dc17dc9e9ede3698ccfda8f9e07a9827d174655e90d352e734') | |
package() { | |
cd "${srcdir}" | |
install -dm 755 \ | |
"${pkgdir}/opt/${pkgname}" \ | |
"${pkgdir}/usr/bin/" \ | |
"${pkgdir}/usr/share/applications/" | |
if [[ "True" = "${_eap}" ]]; then | |
cp -R --no-preserve=ownership "${srcdir}/JetBrains Rider-${_buildver}/"* "${pkgdir}/opt/${pkgname}" | |
# else | |
fi | |
if [[ "i686" = "${CARCH}" ]]; then | |
rm -f "${pkgdir}/opt/${pkgname}/bin/libyjpagent-linux64.so" | |
rm -f "${pkgdir}/opt/${pkgname}/bin/fsnotifier64" | |
fi | |
sed -i "s/Version=/Version=${pkgver}/g" "${pkgname}.desktop" | |
install -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/" | |
ln -s "/opt/${pkgname}/bin/rider.sh" "${pkgdir}/usr/bin/rider-eap" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment