blob: e0343d005ed1b7d98214919561a5a98c040eba28 (
plain)
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
44
45
46
47
48
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=i2pd-tools-git
pkgver=r280.ge872010
pkgrel=1
pkgdesc='Useful tools for I2P (git version)'
arch=('x86_64')
url='https://github.com/PurpleI2P/i2pd-tools/'
license=('BSD-3-Clause')
depends=('boost-libs' 'openssl' 'python' 'zlib')
makedepends=('git' 'boost')
provides=('i2pd-tools')
conflicts=('i2pd-tools')
source=('git+https://github.com/PurpleI2P/i2pd-tools.git'
'git+https://github.com/PurpleI2P/i2pd.git'
'010-i2pd-tools-use-arch-flags.patch')
sha256sums=('SKIP'
'SKIP'
'840e4aae34262cf657a0162540dcdf1a3ef0fdaf05b7d162f179c5575329e8a5')
prepare() {
git -C i2pd-tools submodule init
git -C i2pd-tools config --local submodule.i2pd.url "${srcdir}/i2pd"
git -C i2pd-tools -c protocol.file.allow='always' submodule update
chmod a-x i2pd-tools/{*.{cpp,hpp,md},dependencies.sh,Makefile}
patch -d i2pd-tools -Np1 -i "${srcdir}/010-i2pd-tools-use-arch-flags.patch"
}
pkgver() {
printf 'r%s.g%s' "$(git -C i2pd-tools rev-list --count HEAD)" "$(git -C i2pd-tools rev-parse --short HEAD)"
}
build() {
make -C i2pd-tools
}
package() {
local _tool
while read -r -d '' _tool
do
install -D -m755 "$_tool" "${pkgdir}/usr/bin/i2pd-${_tool##*/}"
done < <(find i2pd-tools -maxdepth 1 -type f -executable -print0)
install -D -m755 i2pd-tools/scripts/i2pdctl -t "${pkgdir}/usr/bin"
install -D -m644 i2pd-tools/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|