Skip to content

Commit 2ac7e22

Browse files
authored
email2phonenumber: python3 support
1 parent 3b0fccc commit 2ac7e22

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

packages/email2phonenumber/PKGBUILD

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,28 @@
33

44
pkgname=email2phonenumber
55
pkgver=29.9df9dbe
6-
pkgrel=3
6+
pkgrel=4
77
pkgdesc="A OSINT tool to obtain a target's phone number just by having his email address."
88
groups=('blackarch' 'blackarch-social' 'blackarch-recon')
99
arch=('any')
10-
url='https://github.com/martinvigo/email2phonenumber/'
10+
url='https://github.com/martinvigo/email2phonenumber'
1111
license=('MIT')
12-
depends=('python2' 'python2-beautifulsoup4' 'python2-requests')
12+
depends=('python' 'python-beautifulsoup4' 'python-bs4' 'python-certifi'
13+
'python-chardet' 'python-idna' 'python-requests' 'python-soupsieve'
14+
'python-urllib3')
1315
makedepends=('git')
1416
source=("git+https://github.com/martinvigo/$pkgname.git")
1517
sha512sums=('SKIP')
1618

1719
pkgver() {
1820
cd $pkgname
1921

20-
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
21-
}
22-
23-
prepare() {
24-
cd $pkgname
25-
26-
sed -i '1i\#!/usr/bin/python2' "$pkgname.py"
22+
( set -o pipefail
23+
git describe --long --tags --abbrev=7 2>/dev/null |
24+
sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
25+
printf "%s.%s" "$(git rev-list --count HEAD)" \
26+
"$(git rev-parse --short=7 HEAD)"
27+
)
2728
}
2829

2930
package() {
@@ -33,4 +34,3 @@ package() {
3334
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
3435
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
3536
}
36-

0 commit comments

Comments
 (0)