diff options
author | M0Rf30 | 2023-04-05 00:25:42 +0200 |
---|---|---|
committer | M0Rf30 | 2023-04-05 00:25:42 +0200 |
commit | 66759cee1e43d0c7c20f8c280c7ab33b2460541d (patch) | |
tree | b510a12e6b98a893d2a7a37de8f991d8fce6f55a | |
parent | 9931a8770c97751b72b1f06d85dfe3753b2a66a7 (diff) | |
download | aur-rts5227-dkms.tar.gz |
rts5227-dkms: 1.08 and new sources
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 51 | ||||
-rw-r--r-- | rts5227-dkms-suspend.sh | 12 |
3 files changed, 36 insertions, 38 deletions
@@ -1,16 +1,15 @@ pkgbase = rts5227-dkms pkgdesc = Driver to support Realtek RTS5227/5229 SD Card Reader - pkgver = 1.07 - pkgrel = 8 + pkgver = 1.08 + pkgrel = 1 url = http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&PNid=15&PFid=25&Level=4&Conn=3&DownTypeID=3&GetDown=false arch = i686 arch = x86_64 license = GPL2 depends = dkms - source = rts5229::git+https://github.com/Zibri/Realtek-rts5229-linux-driver + source = git+https://github.com/strahl/rts5227-dkms source = rts5227-dkms-suspend.sh - md5sums = SKIP - md5sums = e59828310982d2943318900d7017b99f + sha256sums = SKIP + sha256sums = 40b59b1bf1656f755f2faa2a913d53f1e4ba996680e2a4d3067b01a0e973276f pkgname = rts5227-dkms - @@ -7,38 +7,37 @@ _pkgbase=rts5227 pkgname=${_pkgbase}-dkms -pkgver=1.07 -pkgrel=8 +pkgver=1.08 +pkgrel=1 pkgdesc="Driver to support Realtek RTS5227/5229 SD Card Reader" arch=('i686' 'x86_64') url="http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&PNid=15&PFid=25&Level=4&Conn=3&DownTypeID=3&GetDown=false" license=('GPL2') depends=('dkms') -source=("rts5229::git+https://github.com/Zibri/Realtek-rts5229-linux-driver" - 'rts5227-dkms-suspend.sh' +source=("git+https://github.com/strahl/rts5227-dkms" + 'rts5227-dkms-suspend.sh' ) -package(){ - sourceDir="${srcdir}/rts5229" - installDir="${pkgdir}/usr/src/${_pkgbase}-${pkgver}" - - # Blacklist rtsx_pci - install -Dm644 "$sourceDir/blacklist-rts5229.conf" "${pkgdir}/etc/modprobe.d/blacklist-${pkgname}.conf" - - # Fix suspend - install -Dm755 "${pkgname}-suspend.sh" "${pkgdir}/usr/lib/systemd/system-sleep/${pkgname}-suspend.sh" - - # Copy sources (including Makefile) - cd "${sourceDir}" - for d in `find . -type d` - do - install -dm755 "${installDir}/$d" - done - for f in `find . -type f ! -name 'README.md' ! -name '.gitignore'` - do - install -m644 "${sourceDir}/$f" "${installDir}/$f" - done +package() { + cd "${srcdir}" + + # Blacklist rtsx_pci + install -Dm644 "${pkgname}/blacklist-rts5227.conf" \ + -t "${pkgdir}/etc/modprobe.d/" + + # Fix suspend + install -Dm755 "${pkgname}-suspend.sh" \ + "${pkgdir}/usr/lib/systemd/system-sleep/${pkgname}-suspend.sh" + + # Copy sources (including Makefile) + mkdir -p "${pkgdir}/usr/src/" + + cp -r "${srcdir}/${pkgname}" \ + "${pkgdir}/usr/src/${_pkgbase}-${pkgver}" + + # Cleanup + rm -rf "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/.git"* } -md5sums=('SKIP' -'e59828310982d2943318900d7017b99f') +sha256sums=('SKIP' + '40b59b1bf1656f755f2faa2a913d53f1e4ba996680e2a4d3067b01a0e973276f') diff --git a/rts5227-dkms-suspend.sh b/rts5227-dkms-suspend.sh index 454454adf496..f45a751f82dd 100644 --- a/rts5227-dkms-suspend.sh +++ b/rts5227-dkms-suspend.sh @@ -2,10 +2,10 @@ # unload rts5227 before suspend, reload afterwards case $1 in - pre) - rmmod rts5227 - ;; - post) - modprobe rts5227 - ;; +pre) + rmmod rts5227 + ;; +post) + modprobe rts5227 + ;; esac |