Skip to content

Commit

Permalink
user/pmbootstrap: new package
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Sep 25, 2024
1 parent bcd4122 commit 42dee2b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
15 changes: 15 additions & 0 deletions user/pmbootstrap/patches/mknod.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- a/pmb/chroot/mount.py 2024-05-18 13:34:09.000000000 -0300
+++ b/pmb/chroot/mount.py 2024-09-25 12:37:10.157484531 -0300
@@ -20,11 +20,11 @@
path = chroot + "/dev/" + str(dev[4])
if not os.path.exists(path):
pmb.helpers.run.root(args, ["mknod",
- "-m", str(dev[0]), # permissions
path, # name
str(dev[1]), # type
str(dev[2]), # major
str(dev[3]), # minor
+ "root:root"
])

# Verify major and minor numbers of created nodes
19 changes: 19 additions & 0 deletions user/pmbootstrap/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pkgname = "pmbootstrap"
pkgver = "2.3.1"
pkgrel = 0
build_style = "python_pep517"
hostmakedepends = [
"python-build",
"python-setuptools",
"python-installer",
]
checkdepends = ["python-pytest"]
depends = ["android-tools"]
pkgdesc = "Chroot/build/flash tool to develop and install postmarketOS"
maintainer = "tulilirockz <[email protected]>"
license = "GPL-3.0-or-later"
url = "https://gitlab.com/postmarketOS/pmbootstrap"
source = f"{url}/-/archive/{pkgver}/pmbootstrap-{pkgver}.tar.gz"
sha256 = "aba09c0a27918dac4b07641339ccf86e6ec0d14d4602056dac44ec49af12c894"
# check: requires networking
options = ["!check"]

0 comments on commit 42dee2b

Please sign in to comment.