convert install script to Makefile
This commit is contained in:
parent
e981f3c729
commit
ae5c332c8a
1 changed files with 12 additions and 14 deletions
26
install → Makefile
Executable file → Normal file
26
install → Makefile
Executable file → Normal file
|
|
@ -1,5 +1,3 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# snap-pac
|
# snap-pac
|
||||||
# https://github.com/wesbarnett/snap-pac
|
# https://github.com/wesbarnett/snap-pac
|
||||||
# Copyright (C) 2016 James W. Barnett
|
# Copyright (C) 2016 James W. Barnett
|
||||||
|
|
@ -16,17 +14,17 @@
|
||||||
|
|
||||||
# You should have received a copy of the GNU General Public License along
|
# You should have received a copy of the GNU General Public License along
|
||||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
|
|
||||||
# Installation script. First argument is the root directory. For use with a
|
.DEFAULT = install
|
||||||
# PKGBUILD that installs using "./install $pkgdir".
|
|
||||||
|
|
||||||
INSTALL_DIR=$1
|
SCRIPTS_DIR=$(DESTDIR)/usr/share/libalpm/scripts/
|
||||||
SCRIPTS_DIR=$INSTALL_DIR/usr/share/libalpm/scripts/
|
HOOKS_DIR=$(DESTDIR)/usr/share/libalpm/hooks/
|
||||||
HOOKS_DIR=$INSTALL_DIR/usr/share/libalpm/hooks/
|
|
||||||
install -d $HOOKS_DIR
|
.PHONY: install
|
||||||
install -d $SCRIPTS_DIR
|
install:
|
||||||
install -Dm 755 snap-pac $SCRIPTS_DIR
|
install -d $(HOOKS_DIR)
|
||||||
install -Dm 644 00_snapper-pre.hook $HOOKS_DIR
|
install -d $(SCRIPTS_DIR)
|
||||||
install -Dm 644 zz_snapper-post.hook $HOOKS_DIR
|
install -Dm 755 snap-pac $(SCRIPTS_DIR)
|
||||||
install -Dm 644 LICENSE "$INSTALL_DIR/usr/share/licenses/snap-pac/LICENSE"
|
install -Dm 644 00_snapper-pre.hook $(HOOKS_DIR)
|
||||||
|
install -Dm 644 zz_snapper-post.hook $(HOOKS_DIR)
|
||||||
|
install -Dm 644 LICENSE $(DESTDIR)/usr/share/licenses/snap-pac/LICENSE
|
||||||
Loading…
Add table
Reference in a new issue