forked from Plemya-x/repo-for-tests
Compare commits
5 Commits
test-ref
...
multiple-p
Author | SHA1 | Date | |
---|---|---|---|
390e32c4d4 | |||
67cffd400b | |||
c1b1b560a8 | |||
d9a3541561 | |||
f8db6a669d |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.gigaide
|
||||
.idea
|
@@ -1,5 +1,5 @@
|
||||
name='bar-pkg'
|
||||
version='1.0.0'
|
||||
version='2.0.0'
|
||||
release='1'
|
||||
desc='BAR PKG'
|
||||
maintainer='UNKNOWN'
|
||||
|
29
test-81-multiple-packages/alr.sh
Normal file
29
test-81-multiple-packages/alr.sh
Normal file
@@ -0,0 +1,29 @@
|
||||
basepkg_name='test-81-multiple-packages'
|
||||
name=(
|
||||
first-package-with-dashes
|
||||
second-package-with-dashes
|
||||
)
|
||||
version='1.0.0'
|
||||
release='1'
|
||||
desc='-'
|
||||
homepage='-'
|
||||
maintainer='Ivan Ivanov <example@example.ru>'
|
||||
architectures=('all')
|
||||
|
||||
meta_first-package-with-dashes() {
|
||||
desc="description first-package-with-dashes"
|
||||
}
|
||||
|
||||
meta_second-package-with-dashes() {
|
||||
desc="description second-package-with-dashes"
|
||||
}
|
||||
|
||||
package_first-package-with-dashes() {
|
||||
mkdir -p $pkgdir/opt
|
||||
echo "first-package" > $pkgdir/opt/first-package
|
||||
}
|
||||
|
||||
package_second-package-with-dashes() {
|
||||
mkdir -p $pkgdir/opt
|
||||
echo "second-package" > $pkgdir/opt/second-package
|
||||
}
|
13
test-94-app/alr.sh
Normal file
13
test-94-app/alr.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
name='test-94-app'
|
||||
version='1.0.0'
|
||||
release='1'
|
||||
desc='test-94-app'
|
||||
maintainer='UNKNOWN'
|
||||
architectures=('all')
|
||||
license=('UNKNOWN')
|
||||
deps=(
|
||||
'test-94-dep'
|
||||
)
|
||||
build_deps=(
|
||||
'test-94-dep'
|
||||
)
|
8
test-94-dep/alr.sh
Normal file
8
test-94-dep/alr.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
name='test-94-dep'
|
||||
version='1.0.0'
|
||||
release='1'
|
||||
desc='test-94-dep'
|
||||
maintainer='UNKNOWN'
|
||||
architectures=('all')
|
||||
license=('UNKNOWN')
|
||||
|
16
test-98-app/alr.sh
Normal file
16
test-98-app/alr.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
name='test-98-app'
|
||||
version='1.0.0'
|
||||
release='1'
|
||||
desc='FOO PKG'
|
||||
maintainer='UNKNOWN'
|
||||
architectures=('all')
|
||||
license=('UNKNOWN')
|
||||
|
||||
build_deps=(
|
||||
'test-98-multipackage-dep-sub'
|
||||
)
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir/opt"
|
||||
echo "FOO-PKG" > "$pkgdir/opt/foo"
|
||||
}
|
31
test-98-multipackage/alr.sh
Normal file
31
test-98-multipackage/alr.sh
Normal file
@@ -0,0 +1,31 @@
|
||||
basepkg_name='test-98-multipackage'
|
||||
name=(
|
||||
test-98-multipackage-dep-sub
|
||||
test-98-multipackage-dep-sub-foo
|
||||
)
|
||||
version='1.0.0'
|
||||
release='1'
|
||||
desc=''
|
||||
maintainer='UNKNOWN'
|
||||
architectures=('all')
|
||||
license=('UNKNOWN')
|
||||
|
||||
meta_test-98-multipackage-dep-sub() {
|
||||
desc="sub"
|
||||
}
|
||||
|
||||
package_test-98-multipackage-dep-sub() {
|
||||
mkdir -p "$pkgdir/opt"
|
||||
echo "sub-pkg" > "$pkgdir/opt/sub-pkg"
|
||||
}
|
||||
|
||||
meta_test-98-multipackage-dep-sub-foo() {
|
||||
desc="sub-foo"
|
||||
}
|
||||
|
||||
package_test-98-multipackage-dep-sub-foo() {
|
||||
mkdir -p "$pkgdir/opt"
|
||||
echo "sub-foo-pkg" > "$pkgdir/opt/sub-foo-pkg"
|
||||
}
|
||||
|
||||
|
14
test-98-multipackage/postinstall.sh
Normal file
14
test-98-multipackage/postinstall.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
getent group plugdev >/dev/null || groupadd -r plugdev
|
||||
|
||||
cat << EOF
|
||||
The daemon requires you add the user to the \`plugdev\` group:
|
||||
# gpasswd -a \$USER plugdev
|
||||
|
||||
Enable the OpenRazer daemon systemd service:
|
||||
\$ systemctl --user enable openrazer-daemon.service
|
||||
|
||||
Reboot for changes to take effect.
|
||||
EOF
|
||||
|
Reference in New Issue
Block a user