From a8b3d9a251b3b6b6e4e313a031cf39d702dca23e Mon Sep 17 00:00:00 2001
From: Lilac <lilac@noreply.bgme.me>
Date: Tue, 9 Jan 2024 14:00:58 +0000
Subject: [PATCH] python-frida-tools: auto updated to 12.3.0-2

---
 repo/python-frida-tools/COPYING  | 50 ++++++++++++++++++++++++++++++++
 repo/python-frida-tools/PKGBUILD | 32 ++++++++++++++++++++
 2 files changed, 82 insertions(+)
 create mode 100644 repo/python-frida-tools/COPYING
 create mode 100644 repo/python-frida-tools/PKGBUILD

diff --git a/repo/python-frida-tools/COPYING b/repo/python-frida-tools/COPYING
new file mode 100644
index 0000000..b01d49c
--- /dev/null
+++ b/repo/python-frida-tools/COPYING
@@ -0,0 +1,50 @@
+              wxWindows Library Licence, Version 3.1
+              ======================================
+
+Copyright (c) 1998-2005 Julian Smart, Robert Roebling et al
+
+Everyone is permitted to copy and distribute verbatim copies
+of this licence document, but changing it is not allowed.
+
+                     WXWINDOWS LIBRARY LICENCE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+This library is free software; you can redistribute it and/or modify it
+under the terms of the GNU Library General Public Licence as published by
+the Free Software Foundation; either version 2 of the Licence, or (at your
+option) any later version.
+
+This library is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
+Licence for more details.
+
+You should have received a copy of the GNU Library General Public Licence
+along with this software, usually in a file named COPYING.LIB.  If not,
+write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+Floor, Boston, MA 02110-1301 USA.
+
+EXCEPTION NOTICE
+
+1. As a special exception, the copyright holders of this library give
+permission for additional uses of the text contained in this release of the
+library as licenced under the wxWindows Library Licence, applying either
+version 3.1 of the Licence, or (at your option) any later version of the
+Licence as published by the copyright holders of version 3.1 of the Licence
+document.
+
+2. The exception is that you may use, copy, link, modify and distribute
+under your own terms, binary object code versions of works based on the
+Library.
+
+3. If you copy code from files distributed under the terms of the GNU
+General Public Licence or the GNU Library General Public Licence into a
+copy of this library, as this licence permits, the exception does not apply
+to the code that you add in this way.  To avoid misleading anyone as to the
+status of such modified files, you must delete this exception notice from
+such code and/or adjust the licensing conditions notice accordingly.
+
+4. If you write modifications of your own for this library, it is your
+choice whether to permit this exception to apply to your modifications.  If
+you do not wish that, you must delete the exception notice from such code
+and/or adjust the licensing conditions notice accordingly.
diff --git a/repo/python-frida-tools/PKGBUILD b/repo/python-frida-tools/PKGBUILD
new file mode 100644
index 0000000..0827752
--- /dev/null
+++ b/repo/python-frida-tools/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: kriskras99 <admin at kriskras99 dot nl>
+# Contributor: Ali Molaei <ali dot molaei at protonmail dot com>
+# Contributor: algebro <algebro at tuta dot io>
+
+_pkgname=frida-tools
+pkgname=python-$_pkgname
+pkgver=12.3.0
+pkgrel=2
+pkgdesc="CLI tools for Frida. Python 3 version from PyPi."
+arch=('i686' 'x86_64')
+url="http://www.frida.re"
+license=('wxWindows Library License, Version 3.1')
+depends=('python' 'python-pygments>=2.15.1' 'python-colorama>=0.4.6' 'python-frida>=16.1.4' 'python-prompt_toolkit>=3.0.38')
+# Sourced from https://pypi.org/project/frida-tools/#files
+source=("https://files.pythonhosted.org/packages/source/f/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
+        "COPYING")
+sha256sums=('8edc67d1ae3792ff5b2dc63508cde4d247f92b7d0d7bf153d74a21a6d58dc045'
+            '5ea1544b51a28bc823b03159190d4108f9fb4f4ef912389f5137c6d295e175b2')
+conflicts=("python2-${_pkgname}")
+
+build() {
+  cd "$srcdir/$_pkgname-$pkgver"
+  python setup.py build
+}
+
+package() {
+  cd "$srcdir/$_pkgname-$pkgver"
+  python setup.py install --root=$pkgdir --optimize=1 --skip-build
+  cd "$srcdir"
+  install -d "$pkgdir/usr/share/licenses/$pkgname"
+  install -m 644 "COPYING" "$pkgdir/usr/share/licenses/$pkgname/"
+}