mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
# Maintainer: Oleg Rakhmanov <oleg [at] archlinuxarm [dot] org>
|
|
|
|
pkgname=cryptodev-dkms
|
|
_pkgname=${pkgname%-*}
|
|
cryptodev_commit=f116a93224fc7b85f83d2c53f565f8fd86165ecc
|
|
|
|
pkgver=1.8
|
|
pkgrel=4
|
|
|
|
pkgdesc="Cryptodev module to take advantage of hardware crypto engines in userspace"
|
|
arch=('arm' 'armv6h' 'armv7h' 'aarch64')
|
|
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"
|
|
'dkms.conf')
|
|
sha256sums=('2bc97ea0a8af1d7ab1e4f1856a97b7a3d3898b7e4a60fd71088679e197ea1281'
|
|
'c42865a4a800a4927619ac5ed742be59a6d960af8295727af909e9ea9587f3da')
|
|
|
|
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
|
|
}
|