summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLopo2015-06-17 20:08:23 +0200
committerLopo2015-06-17 20:08:23 +0200
commit04276b5076c490e79213b21087305e6050e1327d (patch)
treec10b0ef5a928fa0bf05ad9dc0baba440e60efabb
downloadaur-04276b5076c490e79213b21087305e6050e1327d.tar.gz
Initial import
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD76
-rw-r--r--netbeans-nightly.pngbin0 -> 15172 bytes
-rw-r--r--netbeans.install13
4 files changed, 112 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0cf47a2596a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = netbeans-cpp-nightly
+ pkgdesc = Netbeans IDE for C/C++
+ pkgver = latest
+ pkgrel = 6
+ url = http://netbeans.org
+ install = netbeans.install
+ arch = any
+ license = CDDL
+ makedepends = gendesk
+ makedepends = setconf
+ depends = java-environment
+ depends = ttf-font
+ depends = libxtst
+ depends = giflib
+ depends = atk
+ optdepends = lib32-glibc
+ options = !strip
+ backup = usr/share/netbeans-cpp-nightly/etc/netbeans.conf
+ source = netbeans-nightly.png
+ sha512sums = 243e5170718d24a15ab67a0f0491c1c50d5bb8bace08485eb73ce33988583aa7fa0ae9f3ad149c9aaeeb99d130e11888e76ac1474e725f3e57e89ae7b36b6040
+
+pkgname = netbeans-cpp-nightly
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4ed23465679
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,76 @@
+# Maintainer: Pavol Hluchy (Lopo) <lopo at losys dot eu>
+
+_bundle='cpp'
+pkgname="netbeans-${_bundle}-nightly"
+pkgver=latest
+pkgrel=6
+pkgdesc="Netbeans IDE for C/C++"
+license=('CDDL')
+arch=('any')
+url="http://netbeans.org"
+depends=('java-environment' 'ttf-font' 'libxtst' 'giflib' 'atk')
+makedepends=('gendesk' 'setconf')
+optdepends=('lib32-glibc')
+backup=("usr/share/$pkgname/etc/netbeans.conf")
+install="netbeans.install"
+options=(!strip)
+source=('netbeans-nightly.png')
+sha512sums=('243e5170718d24a15ab67a0f0491c1c50d5bb8bace08485eb73ce33988583aa7fa0ae9f3ad149c9aaeeb99d130e11888e76ac1474e725f3e57e89ae7b36b6040')
+_webroot="http://bits.netbeans.org/download/trunk/nightly/latest"
+
+prepare() {
+ cd "${SRCDEST}"
+
+ download_file "${_webroot}/js/build_info.js"
+ download_file "${_webroot}/js/files.js"
+
+ _zipname=`grep -e '^build_info\.ZIP_FILES_PREFIX\s' build_info.js \
+ | awk 'BEGIN {FPAT="\".+\""} {gsub(/\"/, "", $NF); print}'`
+ _file="${_zipname}-${_bundle}.zip"
+ _md5=`grep "zip/${_file}" files.js \
+ | awk 'BEGIN {FPAT="\"[0-9a-z]+\""} {gsub(/\"/, "", $NF); print}'`
+
+ download_file "${_webroot}/zip/${_file}"
+
+ msg "$(gettext "Validating source files with %s...")" "md5sums"
+ file="$(get_filename "${_file}")"
+ printf "%s" " $file ... " >&2
+ local _realsum="$(openssl dgst -md5 "${_file}")"
+ if [ "${_md5}" != "${_realsum##* }" ]; then
+ printf -- "$(gettext "FAILED")\n" >&2
+ return 1
+ else
+ printf -- "$(gettext "Passed")\n" >&2
+ fi
+
+ 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"
+# setconf -a netbeans/etc/netbeans.conf netbeans_jdkhome '"/usr/lib/jvm/default"'
+}
+
+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
new file mode 100644
index 00000000000..e9ed6a2835c
--- /dev/null
+++ b/netbeans-nightly.png
Binary files differ
diff --git a/netbeans.install b/netbeans.install
new file mode 100644
index 00000000000..7398ae836dc
--- /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: