blob: 66ff2c998843779485bd5b8b3bdaa933652f6649 (
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
|
# Maintainer: ebiadsu <ebiadsu@posteo.de>
# Contributor: Vlad M. <vlad@archlinux.net>
# Contributor: Leo von Klenze <leo.vonklenze@tngtech.com>
pkgname=atlassian-plugin-sdk
pkgver=9.1.1
pkgrel=1
pkgdesc="Atlassian plugin software developer kit"
arch=('i686' 'x86_64')
url="https://marketplace.atlassian.com/plugins/atlassian-plugin-sdk-tgz"
license=('Apache License 2.0')
source=("https://maven.atlassian.com/public/com/atlassian/amps/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('b0401ed5e89ff6a5ef20ebbc45f6783169e010ee720a353be20e02addf392776')
depends=('java-environment')
package() {
cd "$pkgdir"
mkdir -p opt/atlassian/plugin-sdk
cp -r "$srcdir"/atlassian-plugin-sdk-$pkgver/* opt/atlassian/plugin-sdk
# remove executable flag from .bat in bin
if [[ -n $(find opt/atlassian/plugin-sdk/apache-maven-*/bin/ -type f -name "*.bat") ]]; then
chmod -x opt/atlassian/plugin-sdk/apache-maven-*/bin/*.bat
fi
# add executable flag for every user
chmod -R +X opt/atlassian/plugin-sdk
# update PATH
mkdir -p etc/profile.d
echo 'export PATH=$PATH:/opt/atlassian/plugin-sdk/bin' > etc/profile.d/$pkgname.sh
echo 'setenv PATH ${PATH}:/opt/atlassian/plugin-sdk/bin' > etc/profile.d/$pkgname.csh
chmod +x etc/profile.d/*
}
|