New package: apache-directory-studio-2.0.0.v20130628_1

This commit is contained in:
Ypnose 2014-04-25 23:00:58 +02:00
parent 38c5c27cf0
commit 86b5096035
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Version=2.0.0.v20130628
Encoding=UTF-8
Name=Apache Directory Studio
Comment=${pkgdesc}
Exec=/opt/ApacheDirectoryStudio/ApacheDirectoryStudio
Icon=/opt/ApacheDirectoryStudio/ApacheDirectoryStudio.xpm
Terminal=false
Type=Application
Categories=Java;Network;

View File

@ -0,0 +1,32 @@
# Template file for 'apache-directory-studio'
pkgname=apache-directory-studio
_pkgname=ApacheDirectoryStudio
version=2.0.0.v20130628
revision=1
depends="gtk+ jre desktop-file-utils"
short_desc="LDAP browser and directory client"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="Apache-2.0"
homepage="http://directory.apache.org/studio/"
only_for_archs="i686 x86_64"
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
_arch="x86_64"
checksum=faef0ba59368ee0112ff838d131e63d6dad06ed75b753a90e540bf283433ac71
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
_arch="x86"
checksum=b3836ca8b6672b113da423869696232df884c87e4ad2d5dc01d2747b64a68db5
fi
distfiles="http://wwwftp.ciril.fr/pub/apache/directory/studio/dist/${version}/${_pkgname}-linux-${_arch}-${version}.tar.gz"
wrksrc="${_pkgname}-linux-${_arch}-${version}"
do_install() {
vmkdir opt/${_pkgname}
vcopy * opt/${_pkgname}
vmkdir usr/share/applications
vinstall ${FILESDIR}/${_pkgname}.desktop 644 usr/share/applications
vmkdir usr/bin
ln -sf /opt/${_pkgname}/${_pkgname} ${DESTDIR}/usr/bin/${_pkgname}
ln -sf /opt/${_pkgname}/${_pkgname} ${DESTDIR}/usr/bin/${pkgname//-/}
}