Patches for aports can be sent to this list

[alpine-aports] [PATCH] community/compton: upgrade to 5.1

Paul Bredbury
Details
Message ID
<20190217205621.8282-1-brebs@sent.com>
Sender timestamp
1550436981
DKIM signature
missing
Download raw message
Patch: +16 -13
Switched to a maintained fork.

Fixed lack of, and inconsistent, variable quoting.

"compton --vsync drm" works, with xf86-video-intel, but is laggy. Seems worth enabling as an option, anyway.

No point in packaging the standard licence text files.

There are no tests actually defined, in /tests dir.
---
 community/compton/APKBUILD | 29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)

diff --git a/community/compton/APKBUILD b/community/compton/APKBUILD
index 3c7d7ba02c..94546cb983 100644
--- a/community/compton/APKBUILD
+++ b/community/compton/APKBUILD
@@ -1,32 +1,35 @@
 # Contributor: Francesco Colista <fcolista@alpinelinux.org>
 # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
 pkgname=compton
-pkgver=0.1_beta2
-pkgrel=1
+pkgver=5.1
+pkgrel=0
 pkgdesc="X Compositor (a fork of xcompmgr-dana)"
 url="https://github.com/chjj/compton"
 arch="all"
-license="MIT"
+license="MIT MPL-2.0"
 makedepends="libx11-dev libxcomposite-dev libxinerama-dev libxdamage-dev \
-	libconfig-dev pcre-dev libxrandr-dev dbus-dev libdrm-dev mesa-dev asciidoc"
+	libconfig-dev pcre-dev libxrandr-dev dbus-dev libdrm-dev mesa-dev meson \
+	libev-dev libxdg-basedir-dev pixman-dev xcb-util-renderutil-dev \
+	xcb-util-image-dev asciidoc"
 install=""
 subpackages="$pkgname-doc"
-source="$pkgname-$pkgver.tar.gz::https://github.com/chjj/$pkgname/archive/v$pkgver.tar.gz"
-
-builddir="$srcdir"/$pkgname-$pkgver
+source="$pkgname-$pkgver.tar.gz::https://github.com/yshui/$pkgname/archive/v$pkgver.tar.gz"
+options="!check" # No tests defined in tests/ directory
+builddir="$srcdir/$pkgname-$pkgver"
 
 build() {
 	cd "$builddir"
-	make PREFIX=/usr
+	meson -Dvsync_drm=true --buildtype=release --prefix=/usr . build
+	ninja -v -C build
 }
 
 package() {
 	cd "$builddir"
-	make PREFIX="$pkgdir"/usr install
-	install -D -m644 "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+	DESTDIR="$pkgdir" ninja -C build install
+
+	mkdir -p "$pkgdir/usr/share/doc/compton"
+	install -m644 README* "$pkgdir/usr/share/doc/compton/"
 	install -D -m644 "compton.sample.conf" "$pkgdir/etc/xdg/compton.conf.example"
 }
 
-md5sums="fed786fa5ee9eb89df02291f2cc6e04d  compton-0.1_beta2.tar.gz"
-sha256sums="7b9cd52a57326116fb5db3f5f89b7d50e17715252d9fd79b70b45ace30a6b009  compton-0.1_beta2.tar.gz"
-sha512sums="c3a019d90e32559d44e3a4969bcc15a15837db9c9519ce8cc70b1bd3d0cb16d29449f68cc2f6a8d834569c9620ec6533ab85c1586da957c69b1ae341d9584535  compton-0.1_beta2.tar.gz"
+sha512sums="61f88019b2b4ef06e5c6a155f913b0b1c0ab7d077be5af14104596cebe0428ba6d0d98399e3c450c494945a1d4727446b2f3631989dc766439112527a9d0a888  compton-5.1.tar.gz"
-- 
2.20.1



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---