blob: 2f9aedbb6b8ccb318bc5b447bf9830440d9a4eac (
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
|
# Maintainer: Your Name <youremail@domain.com>
pkgname=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 \
-nostartfiles \
-fpic \
-shared bindToInterface.c \
-o bindToInterface.so \
-ldl \
-D_GNU_SOURCE
}
package() {
install -Dm644 "./bindToInterface.so" "$pkgdir/usr/lib/bindToInterface.so"
ln -s "bindToInterface.so" "$pkgdir/usr/lib/bindtointerface.so"
}
|