gobject-introspection: drop install scripts
This commit is contained in:
@@ -6,7 +6,7 @@ pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}"
|
||||
"${MINGW_PACKAGE_PREFIX}-${_realname}-runtime")
|
||||
pkgver=1.66.1
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64')
|
||||
url="https://live.gnome.org/GObjectIntrospection"
|
||||
@@ -36,7 +36,7 @@ sha256sums=('dd44a55ee5f426ea22b6b89624708f9e8d53f5cc94e5485c15c87cb30e06161d'
|
||||
'594a067618922f10bdc5034f290f49d36944df3b970c9604381e2b9058a648da'
|
||||
'19ca830262339c4ac9f21bfb8d669ee8e126a949a4237d55656e00c5ae81c451'
|
||||
'3f38bdd0dd43d9cf626cbca7c2abd22a7ed0213e6756252c6d467d470d9c5948'
|
||||
'00e03a8b9d45e620c6fabbf96f5ccb41d1e49cc9b35ccb846d423f235ad5bec6')
|
||||
'e57174517b08cf8f9fb4f43a381d342d23d2db3cad661107f35ca21c39b5734d')
|
||||
|
||||
prepare() {
|
||||
cd ${srcdir}/${_realname}-${pkgver}
|
||||
@@ -70,7 +70,6 @@ package_gobject-introspection() {
|
||||
"${MINGW_PACKAGE_PREFIX}-python"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-mako")
|
||||
options=('!emptydirs')
|
||||
install=${_realname}-${CARCH}.install
|
||||
|
||||
cd "${srcdir}/build-${MINGW_CHOST}"
|
||||
|
||||
@@ -80,8 +79,6 @@ package_gobject-introspection() {
|
||||
for name in g-ir-scanner g-ir-doc-tool g-ir-annotation-tool; do
|
||||
${MINGW_PREFIX}/bin/python3 \
|
||||
"${srcdir}/pyscript2exe.py" "${pkgdir}${MINGW_PREFIX}/bin/${name}"
|
||||
sed -e "s|${_PRE_WIN}|${MINGW_PREFIX}|g" \
|
||||
-i ${pkgdir}${MINGW_PREFIX}/bin/${name}-script.py
|
||||
done
|
||||
|
||||
for pcfile in "${pkgdir}${MINGW_PREFIX}"/lib/pkgconfig/*.pc; do
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
post_install() {
|
||||
cd mingw32
|
||||
local _prefix=$(pwd -W)
|
||||
cd -
|
||||
local _it
|
||||
for _it in g-ir-scanner g-ir-doc-tool g-ir-annotation-tool; do
|
||||
sed -e "s|/mingw32|${_prefix}|g" \
|
||||
-i ${_prefix}/bin/${_it}-script.py
|
||||
done
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
post_install() {
|
||||
cd mingw64
|
||||
local _prefix=$(pwd -W)
|
||||
cd -
|
||||
local _it
|
||||
for _it in g-ir-scanner g-ir-doc-tool g-ir-annotation-tool; do
|
||||
sed -e "s|/mingw64|${_prefix}|g" \
|
||||
-i ${_prefix}/bin/${_it}-script.py
|
||||
done
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
@@ -12,8 +12,7 @@ path = sys.argv[1]
|
||||
with open(path, "rb") as f:
|
||||
data = f.read()
|
||||
with open(path, "wb") as f:
|
||||
shebang = "#!" + os.path.join(sys.prefix, 'bin',os.path.basename(sys.executable))
|
||||
f.write(re.sub(b"^#![^\n\r]*", shebang.encode(), data))
|
||||
f.write(re.sub(b"^#![^\n\r]*", b'', data))
|
||||
root, ext = os.path.splitext(path)
|
||||
with open(root + ".exe", "wb") as f:
|
||||
f.write(get_win_launcher("cli"))
|
||||
|
||||
Reference in New Issue
Block a user