diff options
author | Michael Bromilow | 2023-12-25 22:42:00 +0000 |
---|---|---|
committer | Michael Bromilow | 2023-12-25 22:42:13 +0000 |
commit | c0b54895cc3a0cb59a5a5bb5a7ef487bebd8dba1 (patch) | |
tree | e0952e8aea426f19ca572c984f054fda2c32bb7c | |
parent | 7ed1490157df41869a63223f3c499cc6bb9b54a8 (diff) | |
download | aur-c0b54895cc3a0cb59a5a5bb5a7ef487bebd8dba1.tar.gz |
Add assets from git repo into install w/ post_install message
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 9 | ||||
-rw-r--r-- | oxeylyzer.install | 5 |
3 files changed, 13 insertions, 4 deletions
@@ -1,8 +1,9 @@ pkgbase = oxeylyzer-git pkgdesc = Alternative keyboard layout analyzer pkgver = r364.d40c28f - pkgrel = 1 + pkgrel = 2 url = https://github.com/O-X-E-Y/oxeylyzer + install = oxeylyzer.install arch = x86_64 license = Apache makedepends = git @@ -2,7 +2,7 @@ pkgname=oxeylyzer-git pkgver=r364.d40c28f -pkgrel=1 +pkgrel=2 pkgdesc="Alternative keyboard layout analyzer" url="https://github.com/O-X-E-Y/oxeylyzer" license=('Apache') @@ -11,6 +11,7 @@ depends=('glibc' 'gcc-libs') makedepends=('git' 'cargo') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") +install=oxeylyzer.install source=('git+https://github.com/O-X-E-Y/oxeylyzer') sha256sums=('SKIP') @@ -27,7 +28,7 @@ prepare() { build() { cd "$srcdir/${pkgname%-git}" export CARGO_TARGET_DIR=target - cargo build --frozen --release --all-features + cargo build --frozen --release --all-features } check() { @@ -37,5 +38,7 @@ check() { package() { cd "$srcdir/${pkgname%-git}" - install -Dm0755 -t "$pkgdir/usr/bin" "target/release/${pkgname%-git}" + install -Dm0755 -t "$pkgdir/usr/bin/${pkgname%-git}" "target/release/${pkgname%-git}" "config.toml" "languages_default.cfg" + install -Dm0755 -t "$pkgdir/usr/lib/${pkgname%-git}" "config.toml" "languages_default.cfg" + cp -a "static" "$pkgdir/usr/lib/${pkgname%-git}" } diff --git a/oxeylyzer.install b/oxeylyzer.install new file mode 100644 index 000000000000..d56340975a08 --- /dev/null +++ b/oxeylyzer.install @@ -0,0 +1,5 @@ +post_install() { + echo "Oxeylyzer assets have been installed to /usr/lib/oxeylyzer" + echo "You may wish to copy these to a local folder then run \`oxeylyzer\` within it." + echo "E.g. using \`cp -r /usr/lib/oxeylyzer/ my-layout-1/\`" +} |