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

40 lines
1.3 KiB
Bash

# Template file for 'apache-directory-studio'
pkgname=apache-directory-studio-bin
_pkgname=ApacheDirectoryStudio
version=2.0.0.v20180908
revision=1
_versionprefix=M14
depends="virtual?java-runtime gtk+ desktop-file-utils"
short_desc="LDAP browser and directory client"
maintainer="Frank Steinborn <steinex@nognu.de>"
license="Apache-2.0"
archs="i686 x86_64"
homepage="http://directory.apache.org/studio/"
nopie=yes
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
_arch="x86_64"
checksum=faae04c6d37bfd1e1ac6cd997399d5d314de7ba9b7279fd7b9c9e052cea0044f
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
_arch="x86"
checksum=38c0ca414961852e6b1d3960124fb12f45ccfcd03779537291afe02725f20d0d
fi
distfiles="https://www-eu.apache.org/dist/directory/studio/${version}-${_versionprefix}/${_pkgname}-${version}-${_versionprefix}-linux.gtk.${_arch}.tar.gz"
wrksrc="${_pkgname}"
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)"
}