diff options
author | Jake Merdich | 2017-07-21 13:14:49 -0700 |
---|---|---|
committer | Jake Merdich | 2017-07-21 13:14:49 -0700 |
commit | 402f8b6334716114a4b6c99831a460a0230e720b (patch) | |
tree | 371f7f91502863974a1365d5820cd1dc65f96a7a | |
download | aur-tty0tty-git.tar.gz |
Initial Commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d1eb8830643a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = tty0tty-git + pkgdesc = tty0tty Virtual Serial Cable (DKMS) + pkgver = git + pkgrel = 1 + url = https://github.com/freemed/tty0tty + arch = i686 + arch = x86_64 + license = GPL2/Apache2 + depends = dkms + conflicts = tty0tty + source = git+https://github.com/freemed/tty0tty + sha256sums = SKIP + +pkgname = tty0tty-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0c4c3f8a0158 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: foo <foo(at)gmail(dot)com> +# Contributor: bar <bar(at)gmai(dot)com> + +_pkgbase=tty0tty +pkgname=tty0tty-git +pkgver=git +pkgrel=1 +pkgdesc="tty0tty Virtual Serial Cable (DKMS)" +arch=('i686' 'x86_64') +url="https://github.com/freemed/tty0tty" +license=('GPL2/Apache2') +depends=('dkms') +conflicts=("${_pkgbase}") +source=("git+https://github.com/freemed/tty0tty") +sha256sums=("SKIP") + +build() { + cd ${_pkgbase} +} + +package() { + # Install + msg2 "Copying DKMS module..." + + # Copy dkms.conf + install -Dm644 "${_pkgbase}"/debian/tty0tty-dkms.dkms "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf + + # Set name and version + sed -e "s/\#MODULE_VERSION\#/${pkgver}/" \ + -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf + + # Copy sources (including Makefile) + cp -r ${_pkgbase}/module/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/ +} |