Skip to content

Commit

Permalink
pkgbuild/deb: change to /usr/lib
Browse files Browse the repository at this point in the history
  • Loading branch information
DashieTM committed Jun 6, 2024
1 parent 3be8adf commit b724b38
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions keyboard_plugin/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pkgname=reset_keyboard
pkgver=1.0.0
pkgrel=0
arch=('x86_64')
pkgdir="$HOME/.config/reset/plugins"
pkgdir="/usr/lib/${pkgname}"
pkgdesc="A keyboard plugin for the ReSet settings application."
depends=('rust' 'gtk4' 'dbus')

Expand All @@ -14,5 +14,6 @@ build() {

package() {
cd ..
install -Dm755 target/release/lib"$pkgname"_plugin.so "$pkgdir"/lib"$pkgname"_plugin.so
mkdir -p "${pkgdir}/usr/lib/reset/"
install -Dm755 target/release/lib"$pkgname"_plugin.so "$pkgdir"/usr/lib/reset/lib"$pkgname"_plugin.so
}
3 changes: 2 additions & 1 deletion keyboard_plugin/debian/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
install -Dm755 target/release/libreset_keyboard_plugin.so $HOME/.config/reset/plugins/libreset_keyboard_plugin.so
mkdir -p /usr/lib/reset
install -Dm755 target/release/libreset_keyboard_plugin.so /usr/lib/reset/libreset_keyboard_plugin.so
5 changes: 3 additions & 2 deletions monitors/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pkgname=reset_monitors
pkgver=1.0.0
pkgrel=0
arch=('x86_64')
pkgdir="$HOME/.config/reset/plugins"
pkgdir="/usr/lib/${pkgname}"
pkgdesc="A monitor plugin for the ReSet settings application."
depends=('rust' 'gtk4' 'dbus')

Expand All @@ -14,5 +14,6 @@ build() {

package() {
cd ..
install -Dm755 target/release/lib"$pkgname".so "$pkgdir"/lib"$pkgname".so
mkdir -p "${pkgdir}/usr/lib/reset/"
install -Dm755 target/release/lib"$pkgname".so "$pkgdir"/usr/lib/reset/lib"$pkgname".so
}
3 changes: 2 additions & 1 deletion monitors/debian/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
install -Dm755 target/release/libreset_monitors.so $HOME/.config/reset/plugins/libreset_monitors.so
mkdir -p /usr/lib/reset
install -Dm755 target/release/libreset_monitors.so /usr/lib/reset/libreset_monitors.so

0 comments on commit b724b38

Please sign in to comment.