37 lines
942 B
Bash
37 lines
942 B
Bash
#!/usr/bin/env bash
|
|
name='lsl'
|
|
release='4'
|
|
version='1.0.5'
|
|
url='https://sulincix/debian-subsystem'
|
|
description='Linux subsystem for linux'
|
|
email='parduscix@yandex.ru'
|
|
maintainer='sulincix'
|
|
license=('GPLv3')
|
|
source=("https://gitlab.com/sulincix/debian-subsystem/-/archive/$version/debian-subsystem-$version.tar.gz"
|
|
"lsl.sysconf")
|
|
depends=(pam make perl)
|
|
makedepends=()
|
|
sha256sums=('33c967d2854698d14daa300fa0816c3a08bba2a5f39d0e4d65cfaa15b8675bd2'
|
|
'SKIP')
|
|
group=(app.container)
|
|
uses=()
|
|
arch=('x86_64')
|
|
|
|
cd debian-subsystem-$version
|
|
|
|
build () {
|
|
# parallel job build and install is not supported.
|
|
make
|
|
}
|
|
|
|
package () {
|
|
make install DESTDIR=$DESTDIR DISTRO=debian
|
|
# install sysconf file
|
|
mkdir -p $DESTDIR/etc/sysconf.d/ $DESTDIR/etc/xdg/menus/
|
|
install ../lsl.sysconf $DESTDIR/etc/sysconf.d/lsl
|
|
# suid allow register
|
|
mkdir -p $DESTDIR/etc/suid.d/
|
|
echo "/bin/lsl" > $DESTDIR/etc/suid.d/lsl
|
|
}
|
|
|