-
-
Notifications
You must be signed in to change notification settings - Fork 550
/
PKGBUILD
44 lines (39 loc) · 1.22 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
pkgname=git-dumper
pkgver=1.0.6.r14.g2d6fa4f
pkgrel=2
epoch=1
pkgdesc='A tool to dump a git repository from a website.'
arch=('any')
groups=('blackarch' 'blackarch-scanner' 'blackarch-webapp')
url='https://github.com/arthaud/git-dumper'
license=('MIT')
depends=('python' 'python-beautifulsoup4' 'python-dulwich' 'python-pysocks'
'python-requests')
makedepends=('git' 'python-build' 'python-pip')
source=("git+https://github.com/arthaud/$pkgname.git")
sha512sums=('SKIP')
pkgver() {
cd $pkgname
echo $(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
}
build() {
cd $pkgname
/usr/bin/pyproject-build --wheel --outdir="$startdir/dist"
}
package() {
cd $pkgname
pip install --verbose \
--disable-pip-version-check \
--no-warn-script-location \
--ignore-installed \
--no-compile \
--no-deps \
--root="$pkgdir" \
--prefix=/usr \
--no-index \
--find-links="file://$startdir/dist" \
"$pkgname"
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}