sys-apps/openSeaChest: rmdir || die, fix var order

Addresses comments on the commit introducing this package.

Signed-off-by: Artemis Everfree <artemis@artemis.sh>
This commit is contained in:
Artemis Everfree
2023-01-16 20:50:55 -08:00
parent 1ce9066f0c
commit 14b03387a5

View File

@@ -7,8 +7,6 @@ inherit meson
DESCRIPTION="SeaGate's open source harddrive control utilities"
HOMEPAGE="https://github.com/Seagate/openSeaChest"
LICENSE="MPL-2.0"
SRC_URI="
https://github.com/Seagate/openSeaChest/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://api.github.com/repos/Seagate/opensea-common/tarball/a2155bb5d1f45e50cc2e0158ed183d15e12de6bd -> opensea-common-a2155bb5d1f45e50cc2e0158ed183d15e12de6bd.tar.gz
@@ -16,7 +14,7 @@ https://api.github.com/repos/Seagate/opensea-operations/tarball/f9eab78b3cc349a7
https://api.github.com/repos/Seagate/opensea-transport/tarball/f09d599a992e4e12e2537e9e5592c8bdf799dc0a -> opensea-transport-f09d599a992e4e12e2537e9e5592c8bdf799dc0a.tar.gz
https://api.github.com/repos/Seagate/wingetopt/tarball/a8c80ade25449464bc847d65420f41eb5262ff62 -> wingetopt-a8c80ade25449464bc847d65420f41eb5262ff62.tar.gz
"
LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RDEPEND=""
@@ -29,13 +27,13 @@ src_prepare() {
# Move over submodules, because the upstream tar doesn't have them.
mkdir -p "${S}"/'subprojects'
rmdir "${S}"/'subprojects/opensea-common' || true
rmdir "${S}"/'subprojects/opensea-common' || die
mv "${WORKDIR}"/'Seagate-opensea-common-a2155bb' "${S}"/'subprojects/opensea-common'
rmdir "${S}"/'subprojects/opensea-operations' || true
rmdir "${S}"/'subprojects/opensea-operations' || die
mv "${WORKDIR}"/'Seagate-opensea-operations-f9eab78' "${S}"/'subprojects/opensea-operations'
rmdir "${S}"/'subprojects/opensea-transport' || true
rmdir "${S}"/'subprojects/opensea-transport' || die
mv "${WORKDIR}"/'Seagate-opensea-transport-f09d599' "${S}"/'subprojects/opensea-transport'
rmdir "${S}"/'subprojects/wingetopt' || true
rmdir "${S}"/'subprojects/wingetopt' || die
mv "${WORKDIR}"/'Seagate-wingetopt-a8c80ad' "${S}"/'subprojects/wingetopt'
}