This commit is contained in:
Nox Sluijtman 2023-07-12 18:19:29 +02:00
parent 4954d72136
commit 344dc42eba
3 changed files with 43 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.tar.gz

20
APKBUILD Normal file
View file

@ -0,0 +1,20 @@
# Contributor: Marty Sluijtman <marty.wanderer@disroot.org>
# Maintainer: Marty Sluijtman <marty.wanderer@disroot.org>
pkgname=pwr-switch
pkgver=1.0
pkgrel=0
arch="noarch"
pkgdesc="A wrapper around my pwr-switch config"
url="https://voidcruiser.nl/rambles/pwr-switch"
license="WTFPL"
source="https://alpine.voidcruiser.nl/src/pwr-switch-1.0.tar.gz"
build(){
return 0
}
package(){
make install PREFIX=/usr DESTDIR="$pkgdir"
}
sha512sums="
93dea84a8cefa40fea20f41c4131169a95f71ebd39fd7123a284114b279d1b9d4a78fc98bdd67e9c18754850a5ad56f6b1c92a9d96b41673db62aa4d094a0619 pwr-switch-1.0.tar.gz
"

22
Makefile Normal file
View file

@ -0,0 +1,22 @@
NAME = pwr-switch
VERSION = 1.0
DIRNAME = $(NAME)-$(VERSION)
PREFIX = /usr/local
dist:
mkdir -p $(DIRNAME)
cp $(NAME) Makefile LICENSE README.md $(DIRNAME)
tar zcf $(DIRNAME).tar.gz $(DIRNAME)
rm -rf $(DIRNAME)
clean:
rm -f $(DIRNAME).tar.gz
install:
install -dm 0755 $(DESTDIR)$(PREFIX)/sbin
install -m 0775 $(NAME) $(DESTDIR)$(PREFIX)/sbin
uninstall:
rm -f $(DESTDIR)$(PREFIX)/sbin/$(NAME)
.PHONY: install uninstall