Skip to content

Commit 4ba1fd6

Browse files
authored
fimap: fix source
1 parent b4cb8f5 commit 4ba1fd6

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

packages/fimap/PKGBUILD

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,35 @@
22
# See COPYING for license details.
33

44
pkgname=fimap
5-
pkgver=1.00
6-
pkgrel=11
5+
pkgver=230.41eca15
6+
pkgrel=1
77
epoch=2
8-
groups=('blackarch' 'blackarch-exploitation' 'blackarch-fuzzer')
98
pkgdesc='A little tool for local and remote file inclusion auditing and exploitation.'
109
arch=('any')
11-
url='http://code.google.com/p/fimap/'
12-
license=('GPL2')
10+
groups=('blackarch' 'blackarch-exploitation' 'blackarch-fuzzer')
11+
url='https://gitlab.tha-imax.de/root/fimap'
12+
license=('GPL-2.0-or-later')
1313
depends=('python2' 'python-urllib3' 'python2-httplib2')
14-
makedepends=('subversion')
14+
makedepends=('git')
1515
options=('!emptydirs')
16-
source=("$pkgname::svn+http://fimap.googlecode.com/svn/trunk/")
16+
source=("git+https://gitlab.tha-imax.de/root/$pkgname.git")
1717
sha512sums=('SKIP')
1818

19+
pkgver() {
20+
cd $pkgname
21+
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+
)
28+
}
29+
1930
prepare() {
20-
grep -rl 'python$' $srcdir/trunk/src | xargs sed -i 's|python$|python2|'
31+
cd $pkgname
32+
33+
grep -rl 'python$' . | xargs sed -i 's|python$|python2|'
2134
}
2235

2336
package() {

0 commit comments

Comments
 (0)