Facebook
From b00rt00s, 3 Weeks ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 46
  1. pkgname=rtl8814au-aircrack-dkms-git
  2. _pkgbase=rtl8814au
  3. pkgver=r82.30626ff
  4. pkgrel=1
  5. pkgdesc="Aircrack-ng kernel module for Realtek (USB adapters only) network cards with 8814au chipset"
  6. url="https://github.com/aircrack-ng/rtl8814au"
  7. license=('GPL')
  8. arch=('x86_64')
  9. makedepends=('git')
  10. depends=('dkms')
  11.  
  12. replaces=('rtl8814au-dkms-git')
  13. conflicts=('rtl8814au-dkms-git')
  14.  
  15. source=('rtl8814au::git+https://github.com/aircrack-ng/rtl8814au.git'
  16.         'dkms.conf')
  17.  
  18. sha256sums=('SKIP'
  19.             'b48a357efd1fd4365741c7cd5993619f60e518061e61fcb1c438f54b2d08149d')
  20.  
  21. pkgver() {
  22.   cd ${srcdir}/${_pkgbase}
  23.   ( set -o pipefail
  24.     git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
  25.     printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  26.   )
  27. }
  28.  
  29. package() {
  30.         cd ${srcdir}/${_pkgbase}
  31.         mkdir -p ${pkgdir}/usr/src/${_pkgbase}-${pkgver}
  32.         cp -pr * ${pkgdir}/usr/src/${_pkgbase}-${pkgver}
  33.         cp ${srcdir}/dkms.conf ${pkgdir}/usr/src/${_pkgbase}-${pkgver}
  34.  
  35.         # Set name and version
  36.         sed -e "s/@_PKGBASE@/${_pkgbase}-dkms/" \
  37.             -e "s/@PKGVER@/${pkgver}/" \
  38.             -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
  39. }