# Template file for 'apache-directory-studio-bin'
pkgname=apache-directory-studio-bin
_pkgname=ApacheDirectoryStudio
version=2.0.0.v20210717
revision=1
_versionprefix=M17
archs="x86_64"
depends="virtual?java-runtime gtk+3 desktop-file-utils"
short_desc="LDAP browser and directory client"
maintainer="Frank Steinborn <steinex@nognu.de>"
license="Apache-2.0"
homepage="https://directory.apache.org/studio/"
distfiles="https://www-eu.apache.org/dist/directory/studio/${version}-${_versionprefix}/${_pkgname}-${version}-${_versionprefix}-linux.gtk.x86_64.tar.gz"
checksum=24764eff94ad3a257a899d34f9933276af0d201fba9017d6737558b2ffd5eda7
python_version=2
nopie=yes

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

apache-directory-studio_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	build_style=meta
	short_desc+=" (transitional dummy package)"
}
