summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 79a2c3f9c8bfe67389a452e772a33b639da1a505 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: robertfoster
# Contributor: mober <maxATmoberDOTat>
# Contributor: muhviehstarr
# Thanks to:
# * astyonax@github
#   https://github.com/astyonax/patched-RTS5227-5229

_pkgbase=rts5227
pkgname=${_pkgbase}-dkms
pkgver=1.07
pkgrel=8
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'
)

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
}

md5sums=('SKIP'
'e59828310982d2943318900d7017b99f')