blob: dc485f7137f7d21182757fa061770903f99b03c2 (
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
|
# Maintainer: solsTiCe d'Hiver <solstice.dhiver@gmail.com>
pkgname=libwifi
pkgver=0.0.10
pkgrel=1
pkgdesc="An 802.11 Frame Parsing and Generation library written in C"
arch=('x86_64')
url="https://libwifi.so"
license=('APACHE')
makedepends=('cmake')
source=("libwifi-${pkgver}.tar.gz::https://github.com/libwifi/libwifi/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('894a8ab711c0abdabd78cc55343757d35ddf4399e5243a9ed0a3a52659eb8f71')
#prepare() {
# cd "$pkgname-$pkgver"
# #sed -i 's/\/usr\/local/${CMAKE_INSTALL_PREFIX}/g' CMakeLists.txt
#}
build() {
cd "$pkgname-$pkgver"
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
cd "$pkgname-$pkgver/build"
make PREFIX="/usr" DESTDIR="$pkgdir/" install
}
|