diff options
author | Lopo | 2018-06-05 06:35:05 +0200 |
---|---|---|
committer | Lopo | 2018-06-05 06:35:05 +0200 |
commit | 4feb70c0a17baa9d0632a60b6dea8459c8d47621 (patch) | |
tree | a0815365b015f54602d85ed1c66ccd9f6861a5b6 | |
download | aur-4feb70c0a17baa9d0632a60b6dea8459c8d47621.tar.gz |
init
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 62 | ||||
-rw-r--r-- | netbeans-nightly.png | bin | 0 -> 5602 bytes | |||
-rw-r--r-- | netbeans.install | 13 |
4 files changed, 102 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e159fc477efc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = netbeans-incubator + pkgdesc = IDE for Java, HTML5, PHP, Groovy, C and C++ (incubator/nightly version) + pkgver = 20180605 + pkgrel = 1 + url = http://netbeans.apache.org + install = netbeans.install + arch = any + license = Apache + makedepends = gendesk + makedepends = setconf + makedepends = curl + depends = java-environment>=9 + depends = ttf-font + depends = libxtst + depends = giflib + depends = atk + optdepends = php: for developing programs in php + optdepends = groovy: for developing programs in groovy + optdepends = lib32-glibc + provides = netbeans + options = !strip + backup = usr/share/netbeans-incubator/etc/netbeans.conf + source = netbeans-nightly.png + sha512sums = 5ce471647913dd0686511724d9b6045f44e9ae06938a8b6f8478bfd7c261c17fea4fa2b692a8c2d6b766503f00aff9c4b8f9e6c26d3b697b8f9a2361a66d9409 + +pkgname = netbeans-incubator + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..19b008c9067b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer: Pavol Hluchy (Lopo) <lopo at losys dot eu> + +pkgname=netbeans-incubator +pkgver=20180605 +pkgrel=1 +pkgdesc='IDE for Java, HTML5, PHP, Groovy, C and C++ (incubator/nightly version)' +license=('Apache') +arch=('any') +url="http://netbeans.apache.org" +depends=('java-environment>=9' 'ttf-font' 'libxtst' 'giflib' 'atk') +makedepends=('gendesk' 'setconf' 'curl') +optdepends=('php: for developing programs in php' + 'groovy: for developing programs in groovy' + 'lib32-glibc') +provides=('netbeans') +backup=("usr/share/$pkgname/etc/netbeans.conf") +install="netbeans.install" +options=(!strip) +source=('netbeans-nightly.png') +sha512sums=('5ce471647913dd0686511724d9b6045f44e9ae06938a8b6f8478bfd7c261c17fea4fa2b692a8c2d6b766503f00aff9c4b8f9e6c26d3b697b8f9a2361a66d9409') +_webroot="https://builds.apache.org/job/incubator-netbeans-linux" + +prepare() { + cd "${SRCDEST}" + + rm -f webindex + curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o webindex "${_webroot}/lastStableBuild/artifact/nbbuild/" + + _file=`grep -e '-basic.zip' webindex \ + | awk 'BEGIN{FPAT="NetBeans-dev-incubator-netbeans-linux-[[:digit:]]+-on-[[:digit:]]+-basic.zip";} {print $1}'` + download_file "${_webroot}/lastStableBuild/artifact/nbbuild/${_file}" + + cd "$srcdir" + ln -fs "${SRCDEST}/${_file}" + extract_file "${_file}" +} + +build() { + msg2 "cleanup OS specific files" + rm $(find -name '*\.exe' -or -name '*\.bat' -or -name '*\.dll') + rm -r $(find -name 'MacOSX*' -or -name 'Windows*' -or -name 'SunOS*' -or -name 'FreeBSD*') + rm -r $(find -name 'hpux*' -or -name 'mac*' -or -name 'solaris*' -or -name 'windows*') + + gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" \ + --custom "StartupWMClass=NetBeans IDE Dev" + setconf "netbeans/bin/netbeans" basedir "/usr/share/$pkgname" +} + +package() { + mkdir -p "$pkgdir"/usr/{bin,share/applications} + + # Resources + cp -r netbeans "$pkgdir/usr/share/$pkgname" + + # Desktop shortcut and icon + install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" + install -Dm644 netbeans-nightly.png "$pkgdir/usr/share/pixmaps/$pkgname.png" + + ln -fs "/usr/share/$pkgname/bin/netbeans" "$pkgdir/usr/bin/$pkgname" +} + +# vim:set ts=4 sw=4 ai: diff --git a/netbeans-nightly.png b/netbeans-nightly.png Binary files differnew file mode 100644 index 000000000000..1ed03d90ed29 --- /dev/null +++ b/netbeans-nightly.png diff --git a/netbeans.install b/netbeans.install new file mode 100644 index 000000000000..7398ae836dc3 --- /dev/null +++ b/netbeans.install @@ -0,0 +1,13 @@ +post_upgrade() { + update-desktop-database >/dev/null 2>&1 +} + +post_install() { + post_upgrade +} + +post_remove() { + post_upgrade +} + +# vim:set ts=2 sw=2 et: |