blob: 50aa25a3a6f20c39e91614cd01cd2106d33a8eae (
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
|
# Maintainer: Haruue Icymoon <i@haruue.moe>
_pkgbase=tcp-brutal
pkgname=${_pkgbase}-dkms
pkgver=1.0.3
pkgrel=1
pkgdesc="Hysteria's congestion control algorithm ported to kernel mode TCP - module sources"
url='https://github.com/apernet/tcp-brutal'
license=('GPL3')
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
depends=('dkms')
source=("$_pkgbase-$pkgver-$pkgrel.tar.gz"::"$url/archive/refs/tags/v$pkgver.tar.gz"
'dkms.conf')
sha256sums=('a52f004f70bba072c2d8bb3774071e91aab25d0fe33cd6a7b76e1d6d9e664a7f'
'946067020f48887d297396e0ea964580a20b7d01e17aab5841d1a47ebce8dbd0')
package() {
cd "$_pkgbase-$pkgver"
local _targetdir="$pkgdir/usr/src/$pkgbase-$pkgver"
install -dm755 "$_targetdir"
install -Dm644 "$srcdir/dkms.conf" "$_targetdir/dkms.conf"
sed -i 's/PACKAGE_VERSION=.*/PACKAGE_VERSION="'"$pkgver"'"/' "$_targetdir/dkms.conf"
install -Dm644 Makefile "$_targetdir/Makefile"
install -Dm644 *.c "$_targetdir/"
}
|