diff options
author | kh@valera | 2021-03-30 23:11:21 +0300 |
---|---|---|
committer | kh@valera | 2021-03-30 23:11:21 +0300 |
commit | 09988adb963b0066c42e4cb56265b440162410b1 (patch) | |
tree | 7622678604a4b274f0cc015ab9cd0deeeefbf2e1 /PKGBUILD | |
parent | 2e524061e0aeaf7b99e8f2dcb847fd62314262dc (diff) | |
download | aur-09988adb963b0066c42e4cb56265b440162410b1.tar.gz |
Fix
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 20 insertions, 4 deletions
@@ -10,9 +10,14 @@ license=('GPL2') makedepends=('git' 'make' 'linux-headers') conflicts=("${_pkgbase}") source=("git+${url}" - "$pkgname.install") + "$pkgname.install" + "makefile-for-linux.patch" + "package_kernel_rtl8189es_patches_010-rename-sta_info.h.patch") install=$pkgname.install -md5sums=('SKIP' '8a04c4c6a69a34393694aa0a14fb4853') +md5sums=('SKIP' + '8a04c4c6a69a34393694aa0a14fb4853' + 'c199e7dce430101a1b47a3e73c7c0b8e' + '967d0e1b4f7e7cc17949113faf67f89b') procs_num=$(nproc) _extramodules=$(cat `find /usr/lib/modules/extramodules* -type 'f' -name 'version'`) @@ -22,19 +27,30 @@ pkgver() { printf '%s' "$(git rev-list --count HEAD)" "." "$(git rev-parse --short HEAD)" } +prepare() { + cd ${srcdir}/rtl8189ES_linux + local i; for i in "${source[@]}"; do + case $i in + *.patch) + echo "Applying patch ${i}" + patch -p1 -i "${srcdir}/${i}" + esac + done +} + build() { cd ${srcdir}/rtl8189ES_linux if [ ${CARCH} == "armv6h" -o ${CARCH} == "armv7h" ]; then ARCH="arm" + make ARCH=$ARCH -j$procs_num KSRC="/usr/lib/modules/${_extramodules}/build/" CONFIG_PLATFORM_ARM_SUN8I=y modules else ARCH=${CARCH} + make ARCH=$ARCH -j$procs_num KSRC="/usr/lib/modules/${_extramodules}/build/" CONFIG_PLATFORM_I386_PC=y modules fi - make ARCH=$ARCH -j$procs_num KSRC="/usr/lib/modules/${_extramodules}/build/" } package(){ cd ${srcdir}/rtl8189ES_linux - file_dir="$pkgdir/usr/lib/modules/${_extramodules}/kernel/drivers/net/wireless/realtek/rtl8189es" mkdir -p $file_dir install -Dm644 "8189es.ko" "$file_dir/8189es.ko" |