Skip to content

Instantly share code, notes, and snippets.

@zman0900
Created September 15, 2017 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zman0900/1649c3c8691ce8118604814025ab312c to your computer and use it in GitHub Desktop.
Save zman0900/1649c3c8691ce8118604814025ab312c to your computer and use it in GitHub Desktop.
diff --git a/PKGBUILD b/PKGBUILD
index e47d4d0..c2b699a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,6 @@ arch=('any')
pkgdesc="An intelligent IDE for Java, Groovy and other programming languages with advanced refactoring features intensely focused on developer productivity."
url="https://www.jetbrains.com/idea/"
license=('Commercial')
-makedepends=('rsync')
options=(!strip)
source=(https://download.jetbrains.com/idea/ideaIU-$pkgver.tar.gz \
jetbrains-idea.desktop
@@ -24,15 +23,8 @@ package_intellij-idea-ultimate-edition() {
cd "$srcdir"
install -d -m755 "${pkgdir}"/usr/{bin,share}
- rsync -rtl "idea-IU-${_buildver}/" "${pkgdir}/usr/share/${pkgbase}" --exclude=/jre64
-
- # make sure that all files are owned by root
- chown -R root:root "${pkgdir}/usr/share"
-
- find "$pkgdir"/usr/share/"$pkgname" -type d -exec chmod 0755 {} ';'
- find "$pkgdir"/usr/share/"$pkgname" -type f -exec chmod 0644 {} ';'
-
- chmod +x "$pkgdir"/usr/share/"$pkgname"/bin/*
+ cp -a "idea-IU-${_buildver}" "${pkgdir}/usr/share/${pkgbase}"
+ rm -rf "${pkgdir}/usr/share/${pkgbase}/jre64"
ln -s /usr/share/"$pkgname"/bin/idea.sh "$pkgdir"/usr/bin/"$pkgname"
install -D -m644 "$srcdir"/jetbrains-idea.desktop "$pkgdir"/usr/share/applications/jetbrains-idea.desktop
@@ -45,7 +37,7 @@ package_intellij-idea-ultimate-edition() {
package_intellij-idea-ultimate-edition-jre() {
arch=('x86_64')
install -d -m 755 "${pkgdir}/usr/share/${pkgbase}"
- rsync -rtl "${srcdir}/idea-IU-${_buildver}/jre64" "${pkgdir}/usr/share/${pkgbase}"
+ cp -a "${srcdir}/idea-IU-${_buildver}/jre64" "${pkgdir}/usr/share/${pkgbase}/"
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment