40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
import os
|
|
import shutil
|
|
|
|
from lib import cpp, packie
|
|
from lib.make import *
|
|
|
|
|
|
version("2.12")
|
|
description("a WPA Supplicant for Linux, BSD, Mac OS X, and Windows with support for WPA, WPA2 (IEEE 802.11i / RSN), and WPA3")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://mirror1.semilabs.org/semios/sources/wpa_supplicant-2.12.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep("libnl-dev @target")
|
|
builddep("openssl-dev (~4) @target")
|
|
|
|
|
|
pkgdir = os.getcwd()
|
|
def build():
|
|
if in_atomic():
|
|
packie.select(f"/lib/{current_target()}/libssl.so", "openssl-libssl")
|
|
packie.select(f"/lib/{current_target()}/libcrypto.so", "openssl-libcrypto")
|
|
shutil.copy2(pkgdir + "/config", "wpa_supplicant/.config")
|
|
cpp.make()
|
|
if in_atomic():
|
|
packie.select(f"/lib/{current_target()}/libssl.so", "aws-lc-libssl")
|
|
packie.select(f"/lib/{current_target()}/libcrypto.so", "aws-lc-libcrypto")
|
|
cpp.make_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("wpa_supplicant")
|
|
dep("semi-libc @same-arch")
|
|
dep("libnl @same-arch")
|
|
dep("openssl-libcrypto (~4) @same-arch")
|
|
dep("openssl-libssl (~4) @same-arch")
|
|
cpp.use_auto_pack(["bin"])
|