-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
47 lines (40 loc) · 1.37 KB
/
PKGBUILD
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
45
46
47
# Maintainer: Luís Ferreira <[email protected]>
# Contributor: robertfoster
# Contributor: mober <maxATmoberDOTat>
# Contributor: muhviehstarr
# Thanks to:
# * astyonax@github
# https://github.com/astyonax/patched-RTS5227-5229
_pkgbase=rts5139
pkgname=${_pkgbase}-dkms
pkgver=1.06
pkgrel=1
pkgdesc="Linux kernel drivers module for RTS5129/RTS5139 USB MMC card reader"
arch=('i686' 'x86_64')
url="http://www.realtek.com.tw/"
license=('GPL2')
depends=('dkms')
makedepends=('git')
source=("${_pkgbase}::git+https://github.com/ljmf00/rts5139.git#tag=v${pkgver}"
dkms.conf)
sha512sums=('SKIP'
'f2a7278201fa8c9ec06029083b7b8d5b24f2e788ca7f7c1758d3c2130934fb2fc24b42ca64b76f51a5ef69e7b4191dac12cf31d4bd925ecedcbb686062a5b476')
package() {
sourceDir="${srcdir}/${_pkgbase}"
installDir="${pkgdir}/usr/src/${_pkgbase}-${pkgver}"
# Copy dkms.conf
install -Dm644 dkms.conf "${installDir}/dkms.conf"
# Copy sources (including Makefile)
cd "${sourceDir}"
# Blacklist rtsx_pci
install -Dm644 "blacklist-${pkgname}.conf" "${pkgdir}/etc/modprobe.d/blacklist-${pkgname}.conf"
install -Dm755 "${pkgname}-suspend.sh" "${pkgdir}/usr/lib/systemd/system-sleep/${pkgname}-suspend.sh"
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
}