aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-02-24 19:03:59 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-02-24 23:54:15 -0300
commitd03ae81672936c01621f13b69998cf1adc251e9f (patch)
tree428b9873501d6bd763b0cfa8cdbf9074149a93f9
parent6249f1b7881d2c63c2b6549c79b8f65b394333eb (diff)
downloadaports-d03ae81672936c01621f13b69998cf1adc251e9f.tar.gz
aports-d03ae81672936c01621f13b69998cf1adc251e9f.tar.bz2
aports-d03ae81672936c01621f13b69998cf1adc251e9f.tar.xz
community/xsetmode: modernize
-rw-r--r--community/xsetmode/APKBUILD17
1 files changed, 6 insertions, 11 deletions
diff --git a/community/xsetmode/APKBUILD b/community/xsetmode/APKBUILD
index 5c36bbc8f2..a6f0bc6ea0 100644
--- a/community/xsetmode/APKBUILD
+++ b/community/xsetmode/APKBUILD
@@ -7,29 +7,24 @@ url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
-depends=
makedepends="libxi-dev libx11-dev"
-source="https://www.x.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+source="https://www.x.org/releases/individual/app/xsetmode-$pkgver.tar.bz2"
-_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
+ default_prepare
+ update_config_sub
}
build() {
- cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- --mandir=/usr/share/man \
- || return 1
- make || return 1
+ --mandir=/usr/share/man
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
sha512sums="a3c1c5e85a0cec35a7db10a57eece07691c0bec79b93987ec4417ebf71544ddffbb4832f78ef524bfcd149beb9852295a2de6a2ccec481cd6eea5633e090abfb xsetmode-1.0.0.tar.bz2"