blob: d6880ffad93360c6f12b65e796f97073f9ce6845 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Nichlas Severinsen <ns@nsz.no>
pkgname=shufflecake
_gitname=$pkgname-c
pkgver=v0.5.0
pkgrel=1
pkgdesc="Plausible deniability layer for Linux (Userland & DKMS)"
arch=("x86" "x86_64")
url="https://shufflecake.net/"
license=("GPL3")
depends=("device-mapper" "libgcrypt" "dkms" "glibc")
makedepends=("make")
provides=("$pkgname")
conflicts=("$pkgname")
source=(
"https://codeberg.org/${pkgname}/${_gitname}/archive/${pkgver}.tar.gz"
"dkms.conf"
"dm-sflc-dkms.conf"
)
# Update with `updpkgsums`
sha256sums=('a061f88c26ba65a8c72ccbfcf428b7623c3b88e125d89a47fca5d44f3beb6715'
'eb95503a32f8aea67a78e1503a97a29cdedfa9e7d7bafd743734faf4f4b69236'
'ce91cea869435bdc7d34c9777ef3112960e9b260556501125bbb048a9d6f4416')
build() {
cd "${srcdir}/$_gitname"
make -C "${pkgname}-userland"
}
package() {
# Their `make install` has no DESTDIR support
# We'll install manually for now.
# Userland
install -Dm755 "${srcdir}/${_gitname}/${pkgname}-userland/bin/proj_build/shufflecake" \
"${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "${srcdir}/${_gitname}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
# DKMS
dkmsdir="${pkgdir}/usr/src/dm-sflc-dkms-${pkgver}"
# Load dm-sflc-dkms automatically at boot
install -Dm644 "${srcdir}/dm-sflc-dkms.conf" "${pkgdir}/etc/modules.load.d/dm-sflc-dkms.conf"
# Install & patch dkms file with version
install -Dm644 "${srcdir}/dkms.conf" "${dkmsdir}/dkms.conf"
sed -e "s/@PKGVER@/${pkgver}/" -i "${dkmsdir}/dkms.conf"
# Copy sources for dm-sflc
cd "${srcdir}/${_gitname}/dm-sflc/"
cp -r . "${dkmsdir}"
}
|