aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-02-24 19:21:29 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-02-25 08:25:48 -0300
commitc5fec25c8c8736727d15e46ce79884786c2ec2d4 (patch)
tree3e0d2eb689e7facc679b20a88b2099e5e8a7f796
parent395c9f89ca1ae812a74c0da9dab278f22c766f00 (diff)
downloadaports-c5fec25c8c8736727d15e46ce79884786c2ec2d4.tar.gz
aports-c5fec25c8c8736727d15e46ce79884786c2ec2d4.tar.bz2
aports-c5fec25c8c8736727d15e46ce79884786c2ec2d4.tar.xz
community/xautolock: modernize
-rw-r--r--community/xautolock/APKBUILD25
-rw-r--r--community/xautolock/processwait.patch4
2 files changed, 7 insertions, 22 deletions
diff --git a/community/xautolock/APKBUILD b/community/xautolock/APKBUILD
index a7959c9db9..ffe646db23 100644
--- a/community/xautolock/APKBUILD
+++ b/community/xautolock/APKBUILD
@@ -7,36 +7,21 @@ pkgdesc="An automatic X screen-locker/screen-saver"
url="ftp://ibiblio.org/pub/Linux/X11/screensavers/"
arch="all"
license="GPL-2.0"
-depends=""
depends_dev="imake xorg-server-dev libxscrnsaver-dev xorg-cf-files"
makedepends="$depends_dev"
-install=""
subpackages="$pkgname-doc"
source="https://www.ibiblio.org/pub/linux/X11/screensavers/xautolock-$pkgver.tgz
processwait.patch"
-_builddir="$srcdir/$pkgname-$pkgver"
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p0 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
-
build() {
- cd "$_builddir"
- xmkmf
- make || return 1
+ xmkmf
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install
- make MANPATH=/usr/share/man DESTDIR="$pkgdir" install.man
+ make DESTDIR="$pkgdir" install
+ make MANPATH=/usr/share/man DESTDIR="$pkgdir" install.man
}
sha512sums="5f9dcc25cda706610e77a74235c4b421ca3a833d154b1a269057f0774579e1c6ec36fe0e5be5fadd6942ce8c1640a760f891397586b162e6024b524635153d04 xautolock-2.2.tgz
-006398a2d73a5b7441536badf933f9764394ca0d09dc9659d4a6ad04c95619d7e57030bf1010a16a7732dd90449af5a23571c8834efeb323ebb91d004da0e8ed processwait.patch"
+6dd8dc41ac78b71cd7b3dfe33cec3dfd7b57d0860da558cb230310a6d37f6b5075b11fe584d6f8d520da294f70688a04edb80e95d9fa0369230bab7292c05415 processwait.patch"
diff --git a/community/xautolock/processwait.patch b/community/xautolock/processwait.patch
index 8a8509a6b7..a288d9aeeb 100644
--- a/community/xautolock/processwait.patch
+++ b/community/xautolock/processwait.patch
@@ -1,5 +1,5 @@
---- src/engine.c.orig 2014-08-28 12:50:56.086307943 +0000
-+++ src/engine.c 2014-08-28 12:50:59.496333650 +0000
+--- a/src/engine.c.orig 2014-08-28 12:50:56.086307943 +0000
++++ b/src/engine.c 2014-08-28 12:50:59.496333650 +0000
@@ -209,24 +209,24 @@ evaluateTriggers (Display* d)
{
#else /* VMS */