netbeans: switch to pacman hooks #74

This commit is contained in:
Francesco Marinucci 2018-12-29 16:36:31 +01:00
parent 8cf4e2a9ce
commit 315f54dc24
2 changed files with 4 additions and 8 deletions

View File

@ -3,8 +3,8 @@
pkgname=netbeans
pkgver=8.2
_pkgdate=201609300101
pkgrel=1
_pkgdate=201610071157
pkgrel=2
pkgdesc='Netbeans IDE development platform for Java, HTML5, PHP, Groovy, C and C++.'
arch=('x86_64')
url='http://www.netbeans.org'
@ -17,9 +17,8 @@ optdepends=('php: for developing programs in php'
categories=('programming')
options=('!strip')
backup=('usr/share/netbeans/etc/netbeans.conf')
install="${pkgname}.install"
source=("http://download.netbeans.org/netbeans/$pkgver/final/zip/netbeans-$pkgver-$_pkgdate.zip")
sha256sums=('ad9888334b9a6c1f1138dcb2eccc8ce4921463e871e46def4ecc617538160948')
source=("http://bits.netbeans.org/netbeans/$pkgver/community/zip/netbeans-$pkgver-$_pkgdate.zip")
sha256sums=('0a3a8fc9c8acfbbb8a48284328ecee80139fc7ed89d8a94f509fbf8295b47346')
prepare() {
gendesk -f -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}"

View File

@ -8,7 +8,6 @@ pre_install() {
# arg 1: the new package version
post_install() {
update-desktop-database >/dev/null 2>&1
/bin/true
}
@ -21,7 +20,6 @@ pre_upgrade() {
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
update-desktop-database >/dev/null 2>&1
/bin/true
}
@ -32,6 +30,5 @@ pre_remove() {
# arg 1: the old package version
post_remove() {
update-desktop-database >/dev/null 2>&1
/bin/true
}