summaryrefslogtreecommitdiff
path: root/app-misc/patchmanager/patchmanager-2.2.31295.ebuild
blob: 5f42c248185e07a57652165544611b5aa271afdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop xdg

DESCRIPTION="Comprehensive cable and asset management software"
HOMEPAGE="https://patchmanager-prod.wpi.edu"
SRC_URI="https://patchmanager.wpi.edu/launchers/PATCH%20MANAGER_launcher_installer_2-2-31295.deb -> patchmanager.deb"

LICENSE="custom"
SLOT="0"
KEYWORDS="~amd64"

DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""

src_unpack() {
	unpack ${A}
	tar xvf data.tar.xz || die

	mkdir -p "${S}" || die
}


src_prepare() {
	true
}
src_prepare() {
	elog "Am I even getting called?"
	eapply_user
	true
}


src_install() {
	cp -r "${WORKDIR}/opt" "${D}/" || die
	cp -r "${WORKDIR}/usr" "${D}/" || die

	install -Dm0755 "${WORKDIR}/opt/PATCH MANAGER/PATCHMANAGER" "${D}/usr/bin/patchmanager" || die
	make_desktop_entry ${PN} ${PN} ${PN} "GTK;GNOME;"
}

pkg_postinst() {
	xdg_icon_cache_update
}

pkg_prerm() {
	xdg_icon_cache_update
}