find-cursor: update to 1.1.

This commit is contained in:
cr6git 2018-09-21 11:46:31 +02:00 committed by GitHub
parent 6546d07675
commit 1f5aaca5f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 38 deletions

View File

@ -1,36 +0,0 @@
From ef50d47a314e6906ed2b6e39a5517f6c5937213b Mon Sep 17 00:00:00 2001
From: maxice8 <thinkabit.ukim@gmail.com>
Date: Tue, 18 Sep 2018 17:10:31 -0300
Subject: [PATCH] Makefile: Fix installation and stripping
- Separate stripping into another step of the package
- Conditionalize stripping the binary, distros don't like when packages do
it because they want the debug symbols included and do their own
stripping after extracting them
- use -Dm755 to create the directory (-D) and set the correct executable
mode
- respect PREFIX which can be set to /usr /usr/local and even /
- respect DESTDIR which is set by distros when they are packaging
---
Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--- Makefile
+++ Makefile
@@ -1,8 +1,11 @@
CC?=cc
CFLAGS?=-std=c99 -pedantic -Wall -Os
+STRIP?=strip
+PREFIX?=/usr
all:
${CC} ${CFLAGS} -o find-cursor find-cursor.c -lX11 -lXext -lXfixes
install:
- install --strip -o root -g root find-cursor /bin/
+ $(STRIP) find-cursor
+ install -Dm755 find-cursor $(DESTDIR)$(PREFIX)/bin/find-cursor
--
2.19.0

View File

@ -1,6 +1,6 @@
# Template file for 'find-cursor'
pkgname=find-cursor
version=1.0
version=1.1
revision=1
build_style=gnu-makefile
makedepends="libXdamage-devel libXrender-devel"
@ -9,7 +9,7 @@ maintainer="biopsin <biopsin@yahoo.no>"
license="MIT"
homepage="https://github.com/Carpetsmoker/find-cursor"
distfiles="https://github.com/Carpetsmoker/find-cursor/archive/v${version}.tar.gz"
checksum=8869cbd3366750df03f5921aae460feb6c262cc0c6f4bb170a815add99eaa2c8
checksum=02bef496b99956440b40ade5a6bf77706b298d6af6e7a1260d4a71729e343f02
post_install() {
vlicense LICENSE