From 86b50960357a9923c688335870517260aaca3b3a Mon Sep 17 00:00:00 2001 From: Ypnose Date: Fri, 25 Apr 2014 23:00:58 +0200 Subject: [PATCH] New package: apache-directory-studio-2.0.0.v20130628_1 --- .../files/ApacheDirectoryStudio.desktop | 10 ++++++ srcpkgs/apache-directory-studio/template | 32 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 srcpkgs/apache-directory-studio/files/ApacheDirectoryStudio.desktop create mode 100644 srcpkgs/apache-directory-studio/template diff --git a/srcpkgs/apache-directory-studio/files/ApacheDirectoryStudio.desktop b/srcpkgs/apache-directory-studio/files/ApacheDirectoryStudio.desktop new file mode 100644 index 00000000000..4f2488d8b8e --- /dev/null +++ b/srcpkgs/apache-directory-studio/files/ApacheDirectoryStudio.desktop @@ -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; diff --git a/srcpkgs/apache-directory-studio/template b/srcpkgs/apache-directory-studio/template new file mode 100644 index 00000000000..e8e14bad81e --- /dev/null +++ b/srcpkgs/apache-directory-studio/template @@ -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 " +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//-/} +}