package
This commit is contained in:
parent
4954d72136
commit
344dc42eba
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.tar.gz
|
20
APKBUILD
Normal file
20
APKBUILD
Normal 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
22
Makefile
Normal 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
|
Loading…
Reference in a new issue