diff options
author | Alexander Sulfrian | 2018-12-15 02:37:50 +0100 |
---|---|---|
committer | Alexander Sulfrian | 2018-12-15 02:42:00 +0100 |
commit | 4cab7726567f26dfe60a1289172868e5da8c2b4c (patch) | |
tree | 1d32bd9d49b6b8a33367a475b2fae8bfb3ec52d2 /PKGBUILD | |
download | aur-ttyebus-dkms.tar.gz |
Initial commit
This is the initial packageing of v1.5.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c16698c7a060 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Alexander Sulfrian <asulfrian@zedat.fu-berlin.de> + +_pkgbase=ttyebus +pkgname=${_pkgbase}-dkms +pkgver=1.5 +pkgrel=1 +pkgdesc="Real time linux kernel module for the ebusd using the PL011 UART on a Rasperry Pi" +arch=('any') +url="https://github.com/eBUS/ttyebus" +license=('GPL3') +depends=('dkms') +conflicts=("${_pkgbase}") + +source=("ttyebus::git+https://github.com/eBUS/ttyebus.git#commit=b39d79d8ae8512adefd73d7ea4b296e59769e7d5" + "dkms.conf") +sha256sums=("SKIP" + "09fd52fecc4ed818560b1c3a1652dbd8f45badddb114d2c004314e4decf37664") + +package() { + # Copy dkms.conf + install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf + + # Set name and version + sed -e "s/@_PKGBASE@/${_pkgbase}/" \ + -e "s/@PKGVER@/${pkgver}/" \ + -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf + + # Copy sources (including Makefile) + cp -r ${_pkgbase}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/ +} |