summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Cao2020-02-03 13:38:48 +0800
committerNick Cao2020-02-03 13:38:48 +0800
commit7f5039beb3323ea20184ae0a0bbdc930ef6331de (patch)
tree6f0ecada026466dcc071ea3bd7ce25b9ef848e9d
downloadaur-7f5039beb3323ea20184ae0a0bbdc930ef6331de.tar.gz
init
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD39
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..045654d2b42
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = jool
+ pkgdesc = Open Source SIIT and NAT64 for Linux.
+ pkgver = 4.0.7
+ pkgrel = 2
+ url = https://www.jool.mx
+ arch = x86_64
+ license = GPL2
+ source = https://github.com/NICMx/Jool/releases/download/v4.0.7/jool-4.0.7.tar.gz
+ sha512sums = adc269c75b7195fbb6de04ecc50824b464644bcaf1ba00634912cbdc21308b872273f4dc5b866f2af9dfd58fedf624e77e0ddaf68403447e6749f7fd0e50146f
+
+pkgname = jool-tools
+ pkgdesc = Open Source SIIT and NAT64 for Linux. - Userspace tools and libraries
+ depends = libnl
+
+pkgname = jool-dkms
+ pkgdesc = Open Source SIIT and NAT64 for Linux. - Kernel modules
+ depends = dkms
+ optdepends = linux-headers: Build the module for Arch kernel
+ optdepends = linux-lts-headers: Build the module for LTS Arch kernel
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..259c300f4ba
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Nick Cao <nickcao@nichi.co>
+
+pkgbase=jool
+pkgname=(jool-tools jool-dkms)
+pkgver=4.0.7
+pkgrel=2
+pkgdesc="Open Source SIIT and NAT64 for Linux."
+arch=('x86_64')
+url="https://www.jool.mx"
+license=('GPL2')
+source=("https://github.com/NICMx/Jool/releases/download/v${pkgver}/jool-${pkgver}.tar.gz")
+sha512sums=('adc269c75b7195fbb6de04ecc50824b464644bcaf1ba00634912cbdc21308b872273f4dc5b866f2af9dfd58fedf624e77e0ddaf68403447e6749f7fd0e50146f')
+
+prepare(){
+ cp -a jool-${pkgver} jool-dkms-${pkgver}
+}
+
+build() {
+ cd jool-${pkgver}
+ ./configure --prefix=/usr
+ make
+}
+
+package_jool-tools() {
+ pkgdesc="Open Source SIIT and NAT64 for Linux. - Userspace tools and libraries"
+ depends=('libnl')
+ cd jool-${pkgver}
+ make DESTDIR="${pkgdir}" install
+}
+
+package_jool-dkms() {
+ pkgdesc="Open Source SIIT and NAT64 for Linux. - Kernel modules"
+ depends=('dkms')
+ optdepends=('linux-headers: Build the module for Arch kernel'
+ 'linux-lts-headers: Build the module for LTS Arch kernel')
+ install -dm 755 "${pkgdir}"/usr/src
+ cp -dr --no-preserve='ownership' jool-dkms-${pkgver} "${pkgdir}/usr/src/jool-${pkgver}"
+}
+