Skip to content

Commit

Permalink
sys-boot/etcher-bin - upstream version increase (pre-release v1.19.2)
Browse files Browse the repository at this point in the history
Updated ebuild incorporating upstream changes to install location
  • Loading branch information
scottfurry committed Dec 31, 2023
1 parent 1e1c442 commit 3906e49
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 30 deletions.
4 changes: 2 additions & 2 deletions sys-boot/etcher-bin/Manifest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AUX etcher.desktop 247 BLAKE2B 3918db901afc0e2ea10c25cb89db6efa44c8299f8b021a26a9f092ac43e9ff1d1e7a76f25095f03860133951357e5c959a4c5b31a3f652e98fb3980a90096d77 SHA512 b3b3b42f081de10479e85589e63ec0a3d2dd241a075b4cfa6651f8f9b2c57a96204fdc5a606df7e7b16f7c96adfae18cc16288c7263f6c08af899332a5d24bb3
DIST balena-etcher_1.18.12_amd64.deb 90104688 BLAKE2B 2432f0acb69add9d48ce4b931841076ce551d41fc3357d88f949adb9614cc004f88b210dac75fb9d22aa15ada9a3a3291bcdd17a7046c4093dfabadaac2d88e6 SHA512 68d830eee3c33d03060ac090574057e102e6d5bdd9835cdd06891358b7838e4c1e03f302ffe5d2b08ea4adb16f001215b1c0e69a27c7fcd5e888a6fa6275c5c1
EBUILD etcher-bin-1.18.12.ebuild 2373 BLAKE2B 41da33706b7aa155158c7e9fec646d199b4ecf2ca0dfa8fae844d6b2f1fc51478232683a27715ca75478f8851496576082f708ade023d9e6b44dd8c7a62cfdf7 SHA512 4b9dcf4fa39fdb07d9b8f4bad19ba83dbb67ef3c2266c27e10b5db4060f6e00fbc9ddb0e70e134634633656fbde5361cba31eb4030fbb1f2f881c9d0198bf785
DIST balena-etcher_1.19.2_amd64.deb 101914144 BLAKE2B d3ce3666372e6d55c5173862e690e7ddbc1e02feb4a2571923f1391ae32f1347dd77ac800618a65c34616844131c91d2188e4931b2cff3e68ce3229abbe997fa SHA512 fd746735950933ad189e4b1000dc6764d5289bdf63160b1939297e3fb7c92ecfe24db7c77663474f8b4701be00c9d9f23ddf874a1859e3b6f0c2d78330879816
EBUILD etcher-bin-1.19.2.ebuild 2183 BLAKE2B 2780f85db8551a0009c1ee0fe10e1b7523e5e33224063abda842d1c86237e33d3f765a92f427aba939308e29750be7d8f071c1ad1fc23b03483af111f2778421 SHA512 75e39562cbcb26d36f2733a45e6d4594a521d59bfc0ffbf32680983dcd9626d6c60fdf2a619cf30fee0f790638c25509f8946c682bc3cab7d84d66a09efd6f4d
MISC metadata.xml 159 BLAKE2B f11ccec5208da850105f4314b7b35acec896342e1e333c82d25c7e8a065adaf8db504f046171869dbf51da363b5e6b907daa068bfb4586ba0ed07034888fa7a6 SHA512 8757b981afa36189f437b9f6b3f1a238c84b03815033f82f38f66c46bfc51e00af8235b59574b9e227b782136b90b476a078818baf0cc272e60b73b9bf3d4b6b
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
EAPI=8

MY_PN="${PN//-bin}"
MY_INSTALL_DIR="/opt/balenaEtcher"
MY_EXEC="balena-${MY_PN}"

inherit desktop unpacker pax-utils xdg wrapper
Expand Down Expand Up @@ -49,51 +48,41 @@ RDEPEND="
x11-libs/pango
"
S="${WORKDIR}/${P}"
MY_INSTALL_DIR="/usr/lib/balena-etcher"

QA_PREBUILT="
"${MY_INSTALL_DIR}"/chrome-sandbox
"${MY_INSTALL_DIR}/chrome-sandbox"
"${MY_INSTALL_DIR}/${MY_EXEC}"
"${MY_INSTALL_DIR}/${MY_EXEC}.bin"
"${MY_INSTALL_DIR}"/libEGL.so
"${MY_INSTALL_DIR}"/libffmpeg.so
"${MY_INSTALL_DIR}"/libGLESv2.so
"${MY_INSTALL_DIR}"/libvk_swiftshader.so
"${MY_INSTALL_DIR}"/libvulkan.so*
"${MY_INSTALL_DIR}"/swiftshader/libEGL.so
"${MY_INSTALL_DIR}"/swiftshader/libGLESv2.so
"${MY_INSTALL_DIR}/libEGL.so"
"${MY_INSTALL_DIR}/libffmpeg.so"
"${MY_INSTALL_DIR}/libGLESv2.so"
"${MY_INSTALL_DIR}/libvk_swiftshader.so"
"${MY_INSTALL_DIR}/libvulkan.so.1"
"
RESTRICT="mirror strip test"

src_unpack() {
# deb archive does not use a containing folder
# manual intervention required
install -d "${S}"
install -d "${S}"
cd "${S}" || die "cd into target directory ${S} failed"
unpack_deb "${A}"
}

src_install() {
# remove upstream provided desktop file
rm usr/share/applications/${MY_EXEC}.desktop || die
# only contains changelog"
rm -rf usr/share/doc || die
# debain specific
rm -fR usr/share/lintian || die

doins -r *
# correct permissions of install components
fperms a+x "${MY_INSTALL_DIR}/${MY_EXEC}" || die
fperms a+x "${MY_INSTALL_DIR}/${MY_EXEC}.bin" || die
fperms a+x "${MY_INSTALL_DIR}/chrome_crashpad_handler" || die
fperms a+x "${MY_INSTALL_DIR}/${MY_EXEC}" || die
fperms a+x "${MY_INSTALL_DIR}/chrome_crashpad_handler" || die
fperms a+x "${MY_INSTALL_DIR}/libEGL.so" || die
fperms a+x "${MY_INSTALL_DIR}/libffmpeg.so" || die
fperms a+x "${MY_INSTALL_DIR}/libGLESv2.so" || die
fperms a+x "${MY_INSTALL_DIR}/libvk_swiftshader.so" || die
fperms a+x "${MY_INSTALL_DIR}/libvulkan.so.1" || die
fperms 4711 "${MY_INSTALL_DIR}/chrome-sandbox" || die

make_wrapper "${MY_PN}" "${MY_INSTALL_DIR}/${MY_EXEC}" || die
# use own desktop file
domenu "${FILESDIR}/${MY_PN}.desktop" || die
}

pkg_postinst() {
xdg_pkg_postinst
}

pkg_postrm() {
xdg_pkg_postrm
}

0 comments on commit 3906e49

Please sign in to comment.