summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerry2020-08-20 15:39:39 +0800
committerJerry2020-08-20 15:39:39 +0800
commitc027e38ca266365a289ac5b80b0273133de9f6a9 (patch)
treea125192dde12943587f213009f713ab4c1616bd6
downloadaur-disable-rtc-dkms.tar.gz
init
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD30
-rw-r--r--dkms.conf8
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c418592aed5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = disable-rtc-dkms
+ pkgdesc = Disable real time clock (DKMS)
+ pkgver = 1
+ pkgrel = 1
+ url = https://github.com/isjerryxiao/disable-rtc
+ arch = x86_64
+ license = GPL2
+ depends = dkms
+ conflicts = disable-rtc
+ source = https://github.com/isjerryxiao/disable-rtc/archive/1bd72723766be039f3af073f6ca2c2b69eef936e.tar.gz
+ source = dkms.conf
+ sha512sums = f0e7fb1ae562dec7d4320ade0067e11f854c9b061feb9777f067fb9f4e753213cf7974b02c135d67168bf2bee7d8a8724de17e529427901c17e32408f48a73a0
+ sha512sums = ec7e4cf8cfe631d5e3985f5e3e4ecfade14bde45ac97a11d66629d3f843b6118513aee0980fc6e0def9915d44a96c3d40ded244a0c0b1c0df814836b8b940795
+
+pkgname = disable-rtc-dkms
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b159979261e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Jerry Xiao <aur at mail.jerryxiao.cc>
+
+_pkgbase=disable-rtc
+pkgname=${_pkgbase}-dkms
+pkgver=1
+pkgrel=1
+_revision=1bd72723766be039f3af073f6ca2c2b69eef936e
+pkgdesc="Disable real time clock (DKMS)"
+arch=('x86_64')
+url="https://github.com/isjerryxiao/disable-rtc"
+license=('GPL2')
+depends=('dkms')
+conflicts=("${_pkgbase}")
+source=("https://github.com/isjerryxiao/disable-rtc/archive/${_revision}.tar.gz"
+ 'dkms.conf')
+sha512sums=('f0e7fb1ae562dec7d4320ade0067e11f854c9b061feb9777f067fb9f4e753213cf7974b02c135d67168bf2bee7d8a8724de17e529427901c17e32408f48a73a0'
+ 'ec7e4cf8cfe631d5e3985f5e3e4ecfade14bde45ac97a11d66629d3f843b6118513aee0980fc6e0def9915d44a96c3d40ded244a0c0b1c0df814836b8b940795')
+
+package() {
+ # Copy dkms.conf
+ install -Dt "${pkgdir}/usr/src/${_pkgbase}-${pkgver}" -m644 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 -rT "disable-rtc-${_revision}" "${pkgdir}/usr/src/${_pkgbase}-${pkgver}"
+}
diff --git a/dkms.conf b/dkms.conf
new file mode 100644
index 00000000000..eab0ba7dd49
--- /dev/null
+++ b/dkms.conf
@@ -0,0 +1,8 @@
+PACKAGE_NAME="@_PKGBASE@"
+PACKAGE_VERSION="@PKGVER@"
+BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
+MAKE[0]="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules"
+CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"
+BUILT_MODULE_NAME[0]="@_PKGBASE@"
+DEST_MODULE_LOCATION[0]=/extramodules
+AUTOINSTALL=yes