blob: 9f16161ed06dfe9e48e06b0b23a8db9349475eb0 (
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
|
# Maintainer: Tim Hellhake
pkgname=rider
pkgver='2021.2.2'
pkgrel=1
epoch=1
pkgdesc='A cross-platform C# IDE by JetBrains.'
arch=('x86_64')
options=('!strip' 'staticlibs')
url='https://www.jetbrains.com/rider/'
license=('Commercial')
optdepends=('mono: .NET runtime' 'msbuild: build .NET Core projects')
provides=('rider')
conflicts=('rider')
_installdir='/usr/share'
_pkgdir="JetBrains Rider-${pkgver}"
_srcfile="JetBrains.Rider-${pkgver}.tar.gz"
source=("https://download-cf.jetbrains.com/rider/${_srcfile}"
'rider.desktop')
sha256sums=('ca61667359c841b01b2b257df476b97cfcce8c423e6a0a32c5b1e4367e45bd9f'
'6bb04056a20674c95dc5f103671bb8cd14910c6b7a4b80d9aa636e01d31ebdf1')
package() {
cd "${srcdir}"
install -d -m755 "${pkgdir}${_installdir}"
cp -a "$_pkgdir" "${pkgdir}${_installdir}/${pkgname}"
chown -R root:root "${pkgdir}${_installdir}/${pkgname}"
install -d -m755 "$pkgdir"/usr/bin
ln -s "${_installdir}/${pkgname}"/bin/rider.sh "${pkgdir}"/usr/bin/"${pkgname}"
install -d -m755 "$pkgdir"/usr/share/applications
sed -i "s#Version=#Version=${pkgver}#g" "${pkgname}.desktop"
sed -i "s#Exec=#Exec=\"${_installdir}/${pkgname}/bin/rider.sh\" %f#g" "${pkgname}.desktop"
sed -i "s/Comment=/Comment=${pkgdesc}/g" "${pkgname}.desktop"
install -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications"
}
|