mnt-and-sway/PKGBUILD

27 lines
904 B
Text
Raw Normal View History

pkgname=mnt-and-sway
pkgver=0.0.1
pkgrel=1
pkgdesc="A script to mount a user's encrypted home partition and start sway"
arch=(any)
url='https://git.askiiart.net/askiiart/mnt-and-sway'
license=('GPL-3.0-only')
2024-10-01 10:30:39 -05:00
depends=('cryptsetup' 'sway')
# it wouldn't work so i give up
2024-10-01 10:30:39 -05:00
source=('mnt-and-sway' 'mnt-and-sway.desktop')
sha256sums=('1a1498356c6f2e39ec31b17d4c3d79dac6660690a9ecf8f123cf0c73a4dab393' 'ac773b4ea037cc2575a8957cb9912f5d51a8a95228e98fcb8a7a1a7cd6b4176e')
package() {
mkdir -p -m 755 $pkgdir/usr/bin/
mkdir -p -m 755 $pkgdir/usr/share/wayland-sessions/
cp ./mnt-and-sway $pkgdir/usr/bin/
chmod 755 $pkgdir/usr/bin/mnt-and-sway
cp ./mnt-and-sway.desktop $pkgdir/usr/share/wayland-sessions/
chmod 644 $pkgdir/usr/share/wayland-sessions/mnt-and-sway.desktop
}
post_install() {
echo "Place the UUID of your home directory's encrypted partition at ~/fs-uuid on the root partition"
}