aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorqinfandong2016-06-14 12:59:00 +0800
committerqinfandong2016-06-14 12:59:00 +0800
commit66ed616597a40d29fa926c493e9647b723c8a4c3 (patch)
tree312c797f854d6de4d74d7d10b502a4f989caacba
parentc8094bfb15916efefbb27cd04342076ad0ea5e47 (diff)
downloadaur-66ed616597a40d29fa926c493e9647b723c8a4c3.tar.gz
Add post scripts
-rw-r--r--PKGBUILD2
-rw-r--r--xf86-video-nouveau-blacklist.install10
2 files changed, 11 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9be7c59e6d49..0f5a613e44ba 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,7 +15,7 @@ conflicts=()
replaces=()
backup=()
options=()
-install=
+install="${pkgname%-git}.install"
source=("${pkgname%-git}::git+${url}#branch=master")
noextract=()
sha256sums=('SKIP')
diff --git a/xf86-video-nouveau-blacklist.install b/xf86-video-nouveau-blacklist.install
new file mode 100644
index 000000000000..d7a4aeec1e3c
--- /dev/null
+++ b/xf86-video-nouveau-blacklist.install
@@ -0,0 +1,10 @@
+## arg 1: the new package version
+post_install () {
+ echo 'Nouveau will disabled after reboot.'
+}
+
+## arg 1: the new package version
+post_remove () {
+ echo 'Nouveau will load after reboot.'
+}
+