mirror of
https://codeberg.org/privacy1st/rotate-screen
synced 2024-11-22 21:39:33 +01:00
add Makefile, PKGBUILD
This commit is contained in:
parent
d6e11fcdf9
commit
bdefcf18d8
26
Makefile
Normal file
26
Makefile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# To be overwritten by user
|
||||||
|
PKGNAME=
|
||||||
|
DESTDIR=/
|
||||||
|
|
||||||
|
# Constants
|
||||||
|
BINDIR=/usr/bin/
|
||||||
|
LIBDIR=/usr/lib/
|
||||||
|
CFGDIR=/etc/
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
|
all: install
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
|
install:
|
||||||
|
install -Dm0555 rotate-screen.py '$(DESTDIR)$(BINDIR)'rotate-screen
|
||||||
|
install -Dm0644 -o0 example.cfg '$(DESTDIR)$(CFGDIR)'rotate-screen.cfg
|
||||||
|
|
||||||
|
.PHONY: check-pkgname
|
||||||
|
check-pkgname:
|
||||||
|
[ '$(PKGNAME)' != '' ] # Variable PKGNAME must not be empty
|
||||||
|
|
||||||
|
# This does not remove the launcher from xfce4
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
rm -rf '$(DESTDIR)$(BINDIR)'rotate-screen
|
||||||
|
rm -rf '$(DESTDIR)$(CFGDIR)'rotate-screen.cfg
|
18
PKGBUILD
Normal file
18
PKGBUILD
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
||||||
|
_pkgname=rotate-screen
|
||||||
|
_reponame="$_pkgname"
|
||||||
|
pkgname="$_pkgname"
|
||||||
|
pkgver=0.1.1
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Script to rotate screen and devices such as touchscreen and pen input"
|
||||||
|
arch=('any')
|
||||||
|
url="https://codeberg.org/privacy1st/${_reponame}"
|
||||||
|
license=('CC0')
|
||||||
|
makedepends=('git') # to fetch source(s) via git
|
||||||
|
source=("git+${url}.git")
|
||||||
|
sha256sums=('SKIP') # 'SKIP' for git sources
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${_reponame}"
|
||||||
|
make DESTDIR="$pkgdir/" install
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user