initial commit

This commit is contained in:
wt committed 2024-12-25 00:35:44 +07:00
commit 58c22835e5
3 files changed
+346

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
DESTDIR=/
install:
if [ ! -d ${DESTDIR}/etc/pm ]; then \
mkdir -pv ${DESTDIR}/etc/pm; \
touch ${DESTDIR}/etc/pm/repo; \
fi
if [ ! -d ${DESTDIR}/tmp ]; then \
mkdir -pv ${DESTDIR}/tmp; \
fi
if [ ! -d ${DESTDIR}/usr/bin ]; then \
mkdir -pv ${DESTDIR}/usr/bin; \
fi
if [ ! -d ${DESTDIR}/usr/share/pm ]; then \
mkdir -pv ${DESTDIR}/usr/share/pm/{packages,repos}; \
touch ${DESTDIR}/usr/share/pm/query; \
fi
if [ ! -d ${DESTDIR}/var/cache/pm/pkg ]; then \
mkdir -pv ${DESTDIR}/var/cache/pm/pkg; \
fi
uninstall:
if [ -d ${DESTDIR}/etc/pm ]; then \
rm -rv ${DESTDIR}/etc/pm; \
fi
if [ -d ${DESTDIR}/usr/share/pm ]; then \
rm -rv ${DESTDIR}/usr/share/pm; \
fi
if [ -d ${DESTDIR}/var/cache/pm ]; then \
rm -rv ${DESTDIR}/var/cache/pm; \
fi
if [ -f ${DESTDIR}/usr/bin/pm ]; then \
rm -v ${DESTDIR}/usr/bin/pm; \
fi