You are not logged in.
Hello, this is my first post. Recently installed arch, for the first time, on my Lenovo T510 ThinkPad. Trying to install https://github.com/bazelbuild/eclipse; its supported installation method is through the GUI, but I was hoping to follow https://wiki.archlinux.org/index.php/ec … guidelines instead. I don't have a strong reason to, other than the fact that I assume that the more closely I follow arch conventions, the more success I will have.
Here's an elided dump of my Source folder, in case it's relevant. I'm including the aur directory because it's small and illustrative of the workflow I'm developing. To be clear, I have already run `makepkg -si` in ~/Source/pkg/eclipse-bazelbuild/.
~/Source $ tree
.
├── aur
│ ├── bazel
│ │ └── PKGBUILD
│ ├── clinfo
│ │ └── PKGBUILD
│ └── google-chrome
│ ├── google-chrome.install
│ ├── google-chrome-stable.sh
│ └── PKGBUILD
└── pkg
└── eclipse-bazelbuild
├── 0.0.2
├── eclipse-bazelbuild-0.0.2-1-any.pkg.tar.xz
├── pkg
│ └── eclipse-bazelbuild
├── PKGBUILD
└── src
├── 0.0.2 -> /home/kd8azz/Source/pkg/eclipse-bazelbuild/0.0.2
└── eclipse-0.0.2
├── com.google.devtools.bazel.e4b
│ ├── build.properties
│ ├── META-INF
│ │ └── MANIFEST.MF
│ ├── plugin.xml
│ ├── resources ...
│ ├── src ...
│ └── third_party -> ../third_party
├── com.google.devtools.bazel.e4b.feature
│ ├── build.properties
│ └── feature.xml
└── p2updatesite
└── site.xmlAnd the contents of my PKGBUILD file. It's not done yet (e.g. md5sums=("SKIP")).
$ cat ~/Source/pkg/eclipse-bazelbuild/PKGBUILD
pkgname="eclipse-bazelbuild"
pkgver="0.0.2"
pkgrel=1
pkgdesc="Bazel plugin for Eclipse"
arch=('any')
url="https://github.com/bazelbuild/eclipse"
license=('Apache')
depends=('eclipse')
# optdepends=('bugzilla: ticketing support')
source=("https://codeload.github.com/bazelbuild/eclipse/zip/${pkgver}")
md5sums=("SKIP")
# sha512sums=('aa6289046df4c254567010b30706cc9cb0a1355e9634adcb2052127030d2640f399caf20fce10e8b4fab5885da29057ab9117af42472bcc1645dcf9881f84236')
prepare() {
# remove features and plug-ins containing sources
rm -f features/*.source_*
rm -f plugins/*.source_*
# remove gz files
rm -f plugins/*.pack.gz
}
package() {
_dest="${pkgdir}/usr/lib/eclipse/dropins/${pkgname/eclipse-}/eclipse"
# Features
find features -type f | while read -r _feature ; do
if [[ "${_feature}" =~ (.*\.jar$) ]] ; then
install -dm755 "${_dest}/${_feature%*.jar}"
cd "${_dest}/${_feature/.jar}"
# extract features (otherwise they are not visible in about dialog)
jar xf "${srcdir}/${_feature}" || return 1
else
install -Dm644 "${_feature}" "${_dest}/${_feature}"
fi
done
# Plugins
find plugins -type f | while read -r _plugin ; do
install -Dm644 "${_plugin}" "${_dest}/${_plugin}"
done
}Now according to https://wiki.archlinux.org/index.php/ec … guidelines, I should expect a features/ folder and a plugins/ folder in the extracted archive. Instead, it contains
$ tree -L 1 -d ~/Source/pkg/eclipse-bazelbuild/src/eclipse-0.0.2/
/home/kd8azz/Source/pkg/eclipse-bazelbuild/src/eclipse-0.0.2/
├── com.google.devtools.bazel.e4b
├── com.google.devtools.bazel.e4b.feature
├── p2updatesite
└── third_partyMy next step is to go learn more about eclipse plugins. But I figured this would qualify as a newbie question, and if someone knows more about this subject, I would appreciate any pointers you can give.
Last edited by kd8azz (2017-04-13 00:52:43)
Offline