2019-04-30 16:07:30 -05:00
|
|
|
installdir = ${pkgdir}/opt/aninix/Uniglot/
|
2022-04-30 23:14:56 -05:00
|
|
|
targets = Bash C CSharp Hooks
|
2019-04-30 15:53:55 -05:00
|
|
|
|
2022-09-18 21:34:48 -05:00
|
|
|
compile:
|
2019-04-30 15:53:55 -05:00
|
|
|
@echo Nothing to compile.
|
|
|
|
|
|
|
|
install: compile
|
|
|
|
mkdir -p ${installdir}
|
2020-06-15 00:17:38 -05:00
|
|
|
for target in ${targets}; do rsync -avzzl "$$target" ${installdir}; done
|
2022-09-18 21:34:48 -05:00
|
|
|
mkdir "${installdir}/pacman/"
|
|
|
|
cp PKGBUILD "${installdir}/pacman/"
|
|
|
|
mkdir "${installdir}/make/"
|
|
|
|
cp Makefile "${installdir}/make/"
|
2022-04-30 23:14:56 -05:00
|
|
|
mkdir -p ${pkgdir}/usr/local/bin
|
2022-09-18 21:34:48 -05:00
|
|
|
find bin/ -type f -exec install -m 0755 -o root -g root {} "${pkgdir}/usr/local/bin" \;
|
2019-04-30 15:53:55 -05:00
|
|
|
make checkperm
|
|
|
|
|
|
|
|
clean:
|
2022-09-18 21:34:48 -05:00
|
|
|
git clean -fdX
|
2019-04-30 15:53:55 -05:00
|
|
|
|
2022-09-18 21:34:48 -05:00
|
|
|
uninstall:
|
|
|
|
rm -Rf ${installdir}
|
|
|
|
|
|
|
|
test:
|
2022-04-30 23:14:56 -05:00
|
|
|
python3 -m pytest
|
2019-04-30 15:53:55 -05:00
|
|
|
|
2022-09-18 21:34:48 -05:00
|
|
|
checkperm:
|
2022-04-30 23:14:56 -05:00
|
|
|
chmod -R 0755 ${installdir} ${pkgdir}/usr/local/bin/uniglot-clone
|
|
|
|
chown root:root ${installdir} ${pkgdir}/usr/local/bin/uniglot-clone
|
2019-04-30 15:53:55 -05:00
|
|
|
|
|
|
|
diff: ${INSTALLFIR}
|
|
|
|
diff -rc . ${installdir}
|
|
|
|
|
|
|
|
reverse:
|
|
|
|
rsync -avzlp ${installdir} .
|