aboutsummaryrefslogtreecommitdiff
path: root/common/hooks/pre-pkg
diff options
context:
space:
mode:
authormaxice8 <thinkabit.ukim@gmail.com>2019-02-02 16:40:05 +0000
committermaxice8 <thinkabit.ukim@gmail.com>2019-02-02 16:40:05 +0000
commitab96ff356e65a27cff82817d9726fada313f0a5e (patch)
tree6faf4ec30e2d44a88dd25ff197f3be9cb3808344 /common/hooks/pre-pkg
parentcc97dab1c430c8dea344b937a8081b5dedfa6535 (diff)
downloadvoid-packages-ab96ff356e65a27cff82817d9726fada313f0a5e.tar
void-packages-ab96ff356e65a27cff82817d9726fada313f0a5e.tar.gz
void-packages-ab96ff356e65a27cff82817d9726fada313f0a5e.tar.bz2
void-packages-ab96ff356e65a27cff82817d9726fada313f0a5e.tar.lz
void-packages-ab96ff356e65a27cff82817d9726fada313f0a5e.tar.xz
void-packages-ab96ff356e65a27cff82817d9726fada313f0a5e.tar.zst
void-packages-ab96ff356e65a27cff82817d9726fada313f0a5e.zip
xbps-src/hooks: most 05-rename-python3-c-bindings to post-install
Diffstat (limited to 'common/hooks/pre-pkg')
-rw-r--r--common/hooks/pre-pkg/05-rename-python3-c-bindings.sh16
1 files changed, 0 insertions, 16 deletions
diff --git a/common/hooks/pre-pkg/05-rename-python3-c-bindings.sh b/common/hooks/pre-pkg/05-rename-python3-c-bindings.sh
deleted file mode 100644
index c16b69d0139..00000000000
--- a/common/hooks/pre-pkg/05-rename-python3-c-bindings.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-# This hook executes the following tasks:
-# - renames cpython binding files to not include the arch-specific extension suffix
-
-hook() {
- if [ ! -d ${PKGDESTDIR}/${py3_sitelib} ]; then
- return 0
- fi
-
- find "${PKGDESTDIR}/${py3_sitelib}" -type f -executable -iname '*.cpython*.so' \
- | while read -r file; do
- filename="${file##*/}"
- modulename="${filename%%.*}"
- msg_warn "${pkgver}: renamed '${filename}' to '${modulename}.so'.\n"
- mv ${file} ${file%/*}/${modulename}.so
- done
-}