-
Notifications
You must be signed in to change notification settings - Fork 4
/
build_puppyrus_pack
executable file
·24 lines (19 loc) · 1.24 KB
/
build_puppyrus_pack
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# Buildier package "PFS-utils" for PuppyRus, by Zay, GPL v3.
VERSION="`cat "$(dirname "$0")/VERSION.md" | sed -e '2 d'`"
# Start:
[ -d "/tmp/build-pfs-pr/pfs-utils-${VERSION}-pr" ] && rm -rf "/tmp/build-pfs-pr/pfs-utils-${VERSION}-pr" 2>/dev/null
mkdir -p "/tmp/build-pfs-pr/pfs-utils-${VERSION}-pr"
cp -a "$(dirname "$0")/usr" "/tmp/build-pfs-pr/pfs-utils-${VERSION}-pr"
# Depends:
mkdir -p "/tmp/build-pfs-pr/pfs-utils-${VERSION}-pr/etc"
mkdir -p "/tmp/build-pfs-pr/pfs-utils-${VERSION}-pr/etc/packages"
mkdir -p "/tmp/build-pfs-pr/pfs-utils-${VERSION}-pr/etc/packages/mount"
mkdir -p "/tmp/build-pfs-pr/pfs-utils-${VERSION}-pr/etc/packages/mount/pfs-utils-${VERSION}-pr"
echo "gtkdialog-0.8" >>"/tmp/build-pfs-pr/pfs-utils-${VERSION}-pr/etc/packages/mount/pfs-utils-${VERSION}-pr/pfs.depends"
echo "skeleton " >>"/tmp/build-pfs-pr/pfs-utils-${VERSION}-pr/etc/packages/mount/pfs-utils-${VERSION}-pr/pfs.depends"
echo "squashfs-tools" >>"/tmp/build-pfs-pr/pfs-utils-${VERSION}-pr/etc/packages/mount/pfs-utils-${VERSION}-pr/pfs.depends"
echo "util-linux" >>"/tmp/build-pfs-pr/pfs-utils-${VERSION}-pr/etc/packages/mount/pfs-utils-${VERSION}-pr/pfs.depends"
# Build:
"$(dirname "$0")/usr/sbin/mkpfs" "/tmp/build-pfs-pr/pfs-utils-${VERSION}-pr"
exit $?