void-packages/srcpkgs/apache-directory-studio/template

33 lines
1.1 KiB
Plaintext
Raw Normal View History

# 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//-/}
}