2016-03-29 23:29:18 +00:00
|
|
|
# Maintainer: Oleg Rakhmanov <oleg [at] archlinuxarm [dot] org>
|
|
|
|
|
|
|
|
pkgname=cryptodev-dkms
|
|
|
|
_pkgname=${pkgname%-*}
|
2022-02-11 08:25:02 +00:00
|
|
|
cryptodev_commit=9c416c4b09c4343bd43897800f27bfb8ae10b9d9
|
2016-03-29 23:29:18 +00:00
|
|
|
|
2021-02-21 11:24:26 +00:00
|
|
|
pkgver=1.12
|
2022-02-11 08:25:02 +00:00
|
|
|
pkgrel=3
|
2016-03-29 23:29:18 +00:00
|
|
|
|
|
|
|
pkgdesc="Cryptodev module to take advantage of hardware crypto engines in userspace"
|
2022-02-11 08:25:02 +00:00
|
|
|
arch=('armv7h' 'aarch64')
|
2016-03-29 23:29:18 +00:00
|
|
|
url="https://github.com/cryptodev-linux/cryptodev-linux"
|
|
|
|
license=('GPL2')
|
|
|
|
depends=('dkms')
|
|
|
|
install=${pkgname}.install
|
|
|
|
provides=('cryptodev_friendly')
|
|
|
|
source=("cryptodev-${cryptodev_commit}.tar.gz::https://github.com/cryptodev-linux/cryptodev-linux/archive/${cryptodev_commit}.tar.gz"
|
2018-05-19 19:20:47 +00:00
|
|
|
'dkms.conf')
|
|
|
|
|
2022-02-11 08:25:02 +00:00
|
|
|
sha256sums=('d8882ff7b16a38b854433a977b11566537df23498a5ee2e59ef920014bd680f0'
|
2018-05-19 19:20:47 +00:00
|
|
|
'c42865a4a800a4927619ac5ed742be59a6d960af8295727af909e9ea9587f3da')
|
2017-09-19 04:39:52 +00:00
|
|
|
|
2016-03-29 23:29:18 +00:00
|
|
|
package() {
|
|
|
|
cd "${srcdir}"
|
|
|
|
|
|
|
|
local install_dir="${pkgdir}/usr/src/${_pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
# Copy dkms.conf
|
|
|
|
install -Dm644 dkms.conf "${install_dir}/dkms.conf"
|
|
|
|
|
|
|
|
# Set name and version
|
|
|
|
sed -e "s/@_PKGNAME@/${_pkgname}/" \
|
|
|
|
-e "s/@PKGVER@/${pkgver}/" \
|
|
|
|
-i "${install_dir}/dkms.conf"
|
|
|
|
|
|
|
|
# Copy sources
|
|
|
|
cd "cryptodev-linux-${cryptodev_commit}"
|
|
|
|
|
|
|
|
for d in $(find . -type d)
|
|
|
|
do
|
|
|
|
install -dm755 "${install_dir}/$d"
|
|
|
|
done
|
|
|
|
|
|
|
|
for f in $(find . -type f)
|
|
|
|
do
|
|
|
|
install -m644 "$f" "${install_dir}/$f"
|
|
|
|
done
|
|
|
|
}
|