Skip to content

Commit 4dfd9c9

Browse files
committed
addpkg: python-pwncli
1 parent 17d8404 commit 4dfd9c9

4 files changed

Lines changed: 112 additions & 0 deletions

File tree

alarmcn/python-pwncli/PKGBUILD

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Maintainer: RocketDev <ma2014119@outlook.com>
2+
3+
_pkgbase='pwncli'
4+
pkgname=python-$_pkgbase-git
5+
pkgver=v1.6.r15.gcc6b696
6+
pkgrel=1
7+
pkgdesc='Do pwn by command line'
8+
arch=('any')
9+
url="https://github.com/RoderickChan/$_pkgbase"
10+
license=(MIT)
11+
depends=(
12+
python
13+
python-click
14+
python-pwntools
15+
python-requests
16+
python-pysocks
17+
ropper
18+
)
19+
makedepends=(
20+
git
21+
python-build
22+
python-setuptools
23+
python-installer
24+
python-wheel
25+
)
26+
source=("git+$url.git")
27+
b2sums=('SKIP')
28+
29+
pkgver() {
30+
cd "$_pkgbase"
31+
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
32+
}
33+
34+
build() {
35+
cd "$_pkgbase"
36+
python -m build --wheel --no-isolation
37+
}
38+
39+
package() {
40+
cd "$_pkgbase"
41+
python -m installer --destdir="$pkgdir" dist/*.whl
42+
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
43+
}

alarmcn/python-pwncli/lilac.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
maintainers:
2+
- github: RocketMaDev
3+
email: RocketDev <marocketbd@gmail.com>
4+
5+
pre_build_script: |
6+
update_pkgver_and_pkgrel(_G.newver)
7+
8+
post_build_script: |
9+
git_pkgbuild_commit()
10+
11+
update_on:
12+
- source: github
13+
github: RoderickChan/pwncli

archlinuxcn/python-pwncli/PKGBUILD

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Maintainer: RocketDev <ma2014119@outlook.com>
2+
3+
_pkgbase='pwncli'
4+
pkgname=python-$_pkgbase-git
5+
pkgver=v1.6.r15.gcc6b696
6+
pkgrel=1
7+
pkgdesc='Do pwn by command line'
8+
arch=('any')
9+
url="https://github.com/RoderickChan/$_pkgbase"
10+
license=(MIT)
11+
depends=(
12+
python
13+
python-click
14+
python-pwntools
15+
python-requests
16+
python-pysocks
17+
ropper
18+
)
19+
makedepends=(
20+
git
21+
python-build
22+
python-setuptools
23+
python-installer
24+
python-wheel
25+
)
26+
source=("git+$url.git")
27+
b2sums=('SKIP')
28+
29+
pkgver() {
30+
cd "$_pkgbase"
31+
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
32+
}
33+
34+
build() {
35+
cd "$_pkgbase"
36+
python -m build --wheel --no-isolation
37+
}
38+
39+
package() {
40+
cd "$_pkgbase"
41+
python -m installer --destdir="$pkgdir" dist/*.whl
42+
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
43+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
maintainers:
2+
- github: RocketMaDev
3+
email: RocketDev <marocketbd@gmail.com>
4+
5+
pre_build_script: |
6+
update_pkgver_and_pkgrel(_G.newver)
7+
8+
post_build_script: |
9+
git_pkgbuild_commit()
10+
11+
update_on:
12+
- source: github
13+
github: RoderickChan/pwncli

0 commit comments

Comments
 (0)