summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrien10182019-11-06 23:52:23 +0800
committeradrien10182019-11-06 23:52:23 +0800
commit71692ace0f3cd1c4a39c3078a73987cb5ccb4cc2 (patch)
tree4076752de909a7510baa6e7a64966f72e0cc3ac8
parent024768bff8468afcff266d9b816dfb25b06ce832 (diff)
downloadaur-71692ace0f3cd1c4a39c3078a73987cb5ccb4cc2.tar.gz
Fix message
-rw-r--r--.SRCINFO6
-rw-r--r--Makefile1
-rw-r--r--PKGBUILD7
-rw-r--r--linger-switch.cpp2
4 files changed, 10 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f6788a8eff2..3ba68a849b7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,15 @@
pkgbase = linger-switch
pkgdesc = A tool to let user to enable / disable lingering
pkgver = 1.0
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/adrien1018/linger-switch
arch = i686
arch = x86_64
provides = linger-switch
source = Makefile
source = linger-switch.cpp
- sha256sums = ade71a4c53d521a18c37aff2274e7e902deaad411958b3194879ca37c294ceb3
- sha256sums = de7453dce18dc64a4db9b2e9cb77f27bde8a4480d476aa8e45c8ca88166c346a
+ sha256sums = 2d4a6f71050d8e45f8f82e17e449078f892299c47bd27c5f6a0d612975b5b31e
+ sha256sums = 18e002192d2b1c130f37779ed2b0b0846cd001014c4eb658fbbdb43f15bd84f3
pkgname = linger-switch
diff --git a/Makefile b/Makefile
index 4a0fa606a45..203fa07c518 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,3 @@
+CXXFLAGS += -O2
all: linger-switch
linger-switch: linger-switch.cpp
diff --git a/PKGBUILD b/PKGBUILD
index 968943698dd..a8bf6e82594 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,16 @@
# Maintainer: Adrien Wu <adrien.sf.wu@gmail.com>
pkgname=linger-switch
pkgver=1.0
-pkgrel=2
+pkgrel=3
pkgdesc="A tool to let user to enable / disable lingering"
url="https://github.com/adrien1018/linger-switch"
arch=('i686' 'x86_64')
provides=('linger-switch')
source=('Makefile' 'linger-switch.cpp')
-sha256sums=('ade71a4c53d521a18c37aff2274e7e902deaad411958b3194879ca37c294ceb3' 'de7453dce18dc64a4db9b2e9cb77f27bde8a4480d476aa8e45c8ca88166c346a')
+sha256sums=(
+ '2d4a6f71050d8e45f8f82e17e449078f892299c47bd27c5f6a0d612975b5b31e'
+ '18e002192d2b1c130f37779ed2b0b0846cd001014c4eb658fbbdb43f15bd84f3'
+)
build() {
cd "$srcdir"
diff --git a/linger-switch.cpp b/linger-switch.cpp
index 674201a633e..072bd2d0829 100644
--- a/linger-switch.cpp
+++ b/linger-switch.cpp
@@ -22,7 +22,7 @@ int main(int argc, char** argv) {
if (setresuid(uid, uid, 0) < 0) Err("setuid");
umask(0022);
bool del = false, flag = false;
- if (argv == 0) Help("linger");
+ if (argv == 0) Help("linger-switch");
else if (argc != 2) Help(argv[0]);
try {
std::string mode_str(argv[1]);