33 lines
1.1 KiB
Bash
33 lines
1.1 KiB
Bash
# Template file for 'apache-directory-studio'
|
|
pkgname=apache-directory-studio
|
|
_pkgname=ApacheDirectoryStudio
|
|
version=2.0.0.v20170904
|
|
revision=1
|
|
depends="virtual?java-runtime gtk+ desktop-file-utils"
|
|
short_desc="LDAP browser and directory client"
|
|
maintainer='Juan RP <xtraeme@voidlinux.org>'
|
|
license="Apache-2.0"
|
|
homepage="http://directory.apache.org/studio/"
|
|
archs="i686 x86_64"
|
|
nopie=yes
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
_arch="x86_64"
|
|
checksum=581d55f3496827710301dec613466d829cf9a3ed3d4308460e63ca08aaa9d6c9
|
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
_arch="x86"
|
|
checksum=96281c2af3b1ea04e423b41b465a93b21607ce41b3dc3771861e0b52557eb5af
|
|
fi
|
|
|
|
distfiles="http://apache.mindstudios.com/directory/studio/${version}-M13/${_pkgname}-${version}-M13-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//-/}
|
|
}
|