summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIdo Rosen2015-06-21 00:07:55 -0400
committerIdo Rosen2015-06-21 00:14:03 -0400
commit92ab378ecd47e539bb54ccfc64545f9b7e793223 (patch)
treeb4e7390faddca71bdad7e9b5647f6798071881c8
downloadaur-92ab378ecd47e539bb54ccfc64545f9b7e793223.tar.gz
Add tn40xx.
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD41
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cd991b922dc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = tn40xx
+ pkgdesc = Tehuti Networks tn40xx network driver.
+ pkgver = 0.3.6.12.1
+ pkgrel = 1
+ url = http://www.tehutinetworks.net/
+ arch = x86_64
+ license = custom
+ makedepends = linux-lts-headers
+ depends = linux-lts
+ options = !libtool
+ options = !strip
+ options = !makeflags
+ options = !buildflags
+ options = staticlibs
+ source = http://www.tehutinetworks.net/images/UL240756/tn40xx-0.3.6.12.1.tgz
+ sha512sums = 9d8391a6189f57541ace4ffee3097178a5110587dc86763647b20b8b0376f96da1fa02a3679578e5ce8fe56c56fe6e0bbb9f4fb4c6ef9d7854b11a3713f7830c
+
+pkgname = tn40xx
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..ca4bee98e34
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+tn40xx-*.tgz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..29d0e82801a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Ido Rosen <ido@kernel.org>
+#
+# NOTE: To request changes to this package, please submit a pull request
+# to the GitHub repository at https://github.com/ido/packages-archlinux
+# Otherwise, open a GitHub issue. Thank you! -Ido
+#
+
+pkgname='tn40xx'
+pkgdesc="Tehuti Networks tn40xx network driver."
+pkgver='0.3.6.12.1'
+pkgrel=1
+arch=('x86_64')
+url='http://www.tehutinetworks.net/'
+license=('custom')
+depends=('linux-lts')
+makedepends=('linux-lts-headers')
+options=('!libtool' '!strip' '!makeflags' '!buildflags' 'staticlibs')
+source=("http://www.tehutinetworks.net/images/UL240756/${pkgname}-${pkgver}.tgz")
+sha512sums=('9d8391a6189f57541ace4ffee3097178a5110587dc86763647b20b8b0376f96da1fa02a3679578e5ce8fe56c56fe6e0bbb9f4fb4c6ef9d7854b11a3713f7830c')
+#install=
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}/"
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}/"
+
+ #install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
+ #install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -dm755 "${pkgdir}/usr/share/doc/${pkgname}"
+ install -m644 Readme release_notes \
+ "${pkgdir}/usr/share/doc/${pkgname}"
+ install -dm755 "${pkgdir}/lib/modules/$(uname -r)/drivers/net/"
+ install -m755 ${pkgname}.ko "${pkgdir}/lib/modules/$(uname -r)/drivers/net/"
+ install -dm755 "${pkgdir}/etc/pm/config.d/"
+ echo "SUSPEND_MODULES=${pkgname}" > "${pkgdir}/etc/pm/config.d/${pkgname}"
+ depmod "$(uname -r)"
+}