diff options
author | detiam | 2023-08-06 23:14:16 +0800 |
---|---|---|
committer | detiam | 2023-08-06 23:14:16 +0800 |
commit | 5ea5089c1fd185b41be1068c0a6fd189f2c124ee (patch) | |
tree | 05891a401190c66bb9cf77f3c759468d9061f055 | |
parent | 4388b2c759ed6fb816102ca9ed7e485f03502f6e (diff) | |
download | aur-5ea5089c1fd185b41be1068c0a6fd189f2c124ee.tar.gz |
Compile Python bytecode
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 11 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = pince-git pkgdesc = A Linux reverse engineering tool inspired by Cheat Engine. - pkgver = r1323.8199257 + pkgver = r1330.e53ee94 pkgrel = 1 url = https://github.com/korcankaraokcu/PINCE arch = any @@ -15,6 +15,7 @@ pkgbase = pince-git pkgname = pince-git depends = base-devel + depends = python3 depends = python-distorm depends = python-gobject depends = python-keystone @@ -4,14 +4,14 @@ # shellcheck disable=SC1090,SC2206 pkgname=pince-git -pkgver=r1323.8199257 +pkgver=r1330.e53ee94 pkgrel=1 pkgdesc="A Linux reverse engineering tool inspired by Cheat Engine." arch=('any') url="https://github.com/korcankaraokcu/PINCE" license=('GPL3') -depends=('base-devel') # follow upstream, set this later -makedepends=('git' 'intltool') +depends=('base-devel' 'python3') # follow upstream, set this later +makedepends=('git') source=("$pkgname::git+$url.git" 'PINCE.desktop') sha256sums=('SKIP' '33f145e61784d9f50b391e880d14a9d31a13d7b86cef0c8620f8f57fec0978bd') _installpath='/usr/share/PINCE' @@ -25,6 +25,8 @@ pkgver() { prepare() { # Remove ".venv/PINCE" exist check sed -i '/^if \[ ! -d "\.venv\/PINCE" \]; /,/activate$/ s/^/# /' "./$pkgname/PINCE.sh" + # This env is no longer needed + sed -i 's| PYTHONDONTWRITEBYTECODE=1||' "./$pkgname/PINCE.sh" # Create a simple start script cat > pince <<- SHELL #!/bin/bash @@ -81,6 +83,10 @@ package() { popd + # Compile Python bytecode + # https://wiki.archlinux.org/title/Talk:Python_package_guidelines#Future_of_Python_packaging_in_Arch_Linux? + python -m compileall -s "$pkgdir" -p / "$pkgdir"/usr/share + # Install desktop entity install -d "$pkgdir"/usr/share/{applications,pixmaps} #ln -s '/usr/share/PINCE/media/logo/ozgurozbek/pince_big_white.png' \ |