2014-04-25 21:00:58 +00:00
|
|
|
# Template file for 'apache-directory-studio'
|
|
|
|
pkgname=apache-directory-studio
|
|
|
|
_pkgname=ApacheDirectoryStudio
|
|
|
|
version=2.0.0.v20130628
|
2014-10-05 09:36:43 +00:00
|
|
|
revision=3
|
|
|
|
depends="virtual?java-runtime gtk+ desktop-file-utils"
|
2014-04-25 21:00:58 +00:00
|
|
|
short_desc="LDAP browser and directory client"
|
|
|
|
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
|
|
|
|
license="Apache-2.0"
|
|
|
|
homepage="http://directory.apache.org/studio/"
|
2014-11-01 17:35:36 +00:00
|
|
|
update_site="http://directory.apache.org/studio/download/download-linux.html"
|
|
|
|
update_pattern='ApacheDirectoryStudio-linux-x86_64-\K[\d.]+v[\d.]+'
|
2014-04-25 21:00:58 +00:00
|
|
|
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//-/}
|
|
|
|
}
|