Advertisement
Guest User

Untitled

a guest
Feb 10th, 2020
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.45 KB | None | 0 0
  1. # Maintainer: Robin McCorkell <robin@mccorkell.me.uk>
  2. # Contributor: Joan Bruguera Micó <joanbrugueram@gmail.com>
  3.  
  4. pkgname=cryptodev-linux
  5. pkgver=1.10
  6. pkgrel=1
  7. pkgdesc="cryptodev Linux module"
  8. url='http://cryptodev-linux.org/'
  9. license=("GPL")
  10. arch=('i686' 'x86_64' 'armv6h' 'armv7h')
  11. makedepends=('linux-headers')
  12. conflicts=('cryptodev_friendly')
  13. provides=('cryptodev_friendly')
  14. optdepends=('openssl-cryptodev: OpenSSL with cryptodev support')
  15. source=(https://github.com/${pkgname}/${pkgname}/archive/${pkgname}-${pkgver}.tar.gz
  16.         https://github.com/cryptodev-linux/cryptodev-linux/commit/f971e0cd4a0ebe59fb2e8e17240399bf6901b09b.patch
  17.         https://github.com/cryptodev-linux/cryptodev-linux/commit/98b163a23f6b9fbdc18c3644cf94a75cdcd0cc80.patch)
  18. sha256sums=('833ab7c5c88d2b700a7c702a151254c089a3058886a63cc7d12630e364b8ea83'
  19.             '66bb2786fcc5d05d5877280c797dee9a835a1ca87c5a78d400cd8310c738a4e6'
  20.             'a536b375e59cc39119082a0cb30e8463e3df5094028652a49640e7d1baebc92f')
  21. install=${pkgname}.install
  22.  
  23. prepare() {
  24.   cd "${srcdir}/${pkgname}-${pkgname}-${pkgver}"
  25.   patch -Np1 -i "${srcdir}/f971e0cd4a0ebe59fb2e8e17240399bf6901b09b.patch"
  26.   patch -Np1 -i "${srcdir}/98b163a23f6b9fbdc18c3644cf94a75cdcd0cc80.patch"
  27. }
  28.  
  29. build() {
  30.   cd "${srcdir}/${pkgname}-${pkgname}-${pkgver}"
  31.   make
  32. }
  33.  
  34. package() {
  35.   cd "${srcdir}/${pkgname}-${pkgname}-${pkgver}"
  36.   make INSTALL_MOD_PATH=${pkgdir}/usr DESTDIR=${pkgdir} PREFIX=${pkgdir} install
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement