blob: 800de9735ae7e5958094aed47d1d6e0da1574195 (
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
|
# Maintainer: Your Name <youremail@domain.com>
pkgname=lib32-bindtointerface
pkgver=4b03914
pkgrel=1
arch=("x86_64")
pkgdesc="With this program you can bind applications to a specific network interface / network adapter."
url="https://github.com/JsBergbau/BindToInterface"
license=('GPL')
source=("https://raw.githubusercontent.com/JsBergbau/BindToInterface/4b039146016d8fbd3bc3e8e5df16eb10ba03c397/bindToInterface.c")
sha256sums=('04a74f52923a0d92102802162451efb5bddf9251c9843ef49e3f4decbaf9e819')
build() {
gcc \
-m32 \
-nostartfiles \
-fpic \
-shared bindToInterface.c \
-o bindToInterface.so \
-ldl \
-D_GNU_SOURCE
}
package() {
install -Dm644 "./bindToInterface.so" "$pkgdir/usr/lib32/bindToInterface.so"
ln -s "bindToInterface.so" "$pkgdir/usr/lib32/bindtointerface.so"
}
|