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

34 lines
1.1 KiB
Bash

# Template file for 'apache-directory-studio-bin'
pkgname=apache-directory-studio-bin
_pkgname=ApacheDirectoryStudio
version=2.0.0.v20200411
revision=1
_versionprefix=M15
archs="x86_64"
wrksrc="${_pkgname}"
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="http://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=67b0c5627abcc4bd6ab2be977d8ed50327b394e2b55cceb0983051cd30587ee6
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)"
}