diff options
author | Musikolo | 2020-07-04 21:44:05 -0500 |
---|---|---|
committer | Musikolo | 2020-07-04 21:44:05 -0500 |
commit | af01ba9a227bae602703eb66d6442d99ded1e90b (patch) | |
tree | 6ea93c946276170aa00f92f9138da45ad881eff7 /lombok-sts.install | |
download | aur-af01ba9a227bae602703eb66d6442d99ded1e90b.tar.gz |
Adopted from lombok-eclipse package. Add integration with eclipse-java, eclipse-jee and spring-tool-suite packages
Diffstat (limited to 'lombok-sts.install')
-rw-r--r-- | lombok-sts.install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lombok-sts.install b/lombok-sts.install new file mode 100644 index 000000000000..c404e8801896 --- /dev/null +++ b/lombok-sts.install @@ -0,0 +1,27 @@ +# Colored makepkg-like functions by Det +msg_blue() { + printf "${blue}==>${bold} $1${all_off}\n" +} + +note() { + printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n" +} + +all_off="$(tput sgr0)" +bold="${all_off}$(tput bold)" +blue="${bold}$(tput setaf 4)" +yellow="${bold}$(tput setaf 3)" + +post_install() { + java -jar /usr/lib/lombok-common/lombok.jar install /opt/sts-*/ || exit 1 + note "You must add lombok.jar or lombok-api.jar to the build path of each Lombok-dependent project." +} + +post_upgrade() { + post_install +} + +pre_remove() { + java -jar /usr/lib/lombok-common/lombok.jar uninstall /opt/sts-*/ || exit 1 +} + |