summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDringsim2023-07-20 11:12:57 +0800
committerDringsim2023-07-20 11:14:12 +0800
commitabd1e02f11e6f108db89d0396e5785acd6420f98 (patch)
treee49c1babf85bc1ad44e3e6a32f1a18b0174b3e2a
downloadaur-abd1e02f11e6f108db89d0396e5785acd6420f98.tar.gz
create package
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD16
-rw-r--r--python.conf1
3 files changed, 29 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..65ce7462a586
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = binfmt-python
+ pkgdesc = Register python interpreter
+ pkgver = 1
+ pkgrel = 1
+ url = http://www.freedesktop.org/software/systemd/man/binfmt.d.html
+ arch = any
+ license = Unlicense
+ depends = python
+ source = python.conf
+ md5sums = 9137ba72f8f1b71d379615beff940ab6
+
+pkgname = binfmt-python
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..0cb2090b0907
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,16 @@
+# Maintainer: Dringsim <dringsim@qq.com>
+
+pkgname=binfmt-python
+pkgver=1
+pkgrel=1
+pkgdesc="Register python interpreter"
+arch=('any')
+url="http://www.freedesktop.org/software/systemd/man/binfmt.d.html"
+license=('Unlicense')
+depends=('python')
+source=('python.conf')
+md5sums=('9137ba72f8f1b71d379615beff940ab6')
+
+package() {
+ install -Dm644 'python.conf' "$pkgdir/usr/lib/binfmt.d/python.conf"
+} \ No newline at end of file
diff --git a/python.conf b/python.conf
new file mode 100644
index 000000000000..e14eaeb169b8
--- /dev/null
+++ b/python.conf
@@ -0,0 +1 @@
+:py:E::py::/usr/bin/python: \ No newline at end of file