34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
# Template file for 'apache-directory-studio'
|
|
pkgname=apache-directory-studio
|
|
_pkgname=ApacheDirectoryStudio
|
|
version=2.0.0.v20151221
|
|
revision=1
|
|
depends="virtual?java-runtime gtk+ desktop-file-utils"
|
|
short_desc="LDAP browser and directory client"
|
|
maintainer='Juan RP <xtraeme@voidlinux.eu>'
|
|
license="Apache-2.0"
|
|
homepage="http://directory.apache.org/studio/"
|
|
only_for_archs="i686 x86_64"
|
|
nopie=yes
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
_arch="x86_64"
|
|
checksum=4da90ba8e0e1e09817faaabd2a878be19843de22b80e8f42d3c8fed14463e0ed
|
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
_arch="x86"
|
|
checksum=51969b0188762d024595c13536f50ef6be0e5eed0d24f704fdd8749cf72ff6d0
|
|
fi
|
|
|
|
distfiles="http://wwwftp.ciril.fr/pub/apache/directory/studio/${version}-M10/${_pkgname}-${version}-M10-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//-/}
|
|
}
|