Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PKGBUILD and building instructions #217

Merged
merged 3 commits into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pkgname='eask'
pkgver=$(git tag --sort=-creatordate | head -n1).$(git rev-parse --short HEAD)
pkgrel=1
pkgdesc='CLI for building, running, testing, and managing your Emacs Lisp dependencies'
arch=('x86_64')
makedepends=('npm')
url='https://github.com/emacs-eask/cli'
license=('GPL-3.0')

prepare() {
npm i
npm run pkg-linux-x64
}

package() {
mkdir -p "$pkgdir/usr/bin"
# ATM eask only works when `lisp` dir is installed together with the binary
cp -r "${startdir}/lisp" "${startdir}/dist/eask" "$pkgdir/usr/bin"
}
13 changes: 12 additions & 1 deletion docs/content/Getting-Started/Install-Eask/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ automatically updated.
$ sudo snap install eask-cli
```

### 📦 Arch (Linux)

There's a `PKGBUILD` that builds `eask` from sources and creates a package, so
inside the top directory of the repository you can simply run:

```sh
$ makepkg -i
```

### 📦 Chocolatey (Windows)

If you have [Chocolatey](https://chocolatey.org/) installed on your machine, you can
Expand Down Expand Up @@ -132,6 +141,8 @@ $ cd eask-cli

# install the requirements
$ npm install
# build from sources. For available targets see `scripts` in `package.json`
$ npm run pkg-linux-x64
```

### 🏡 Setup
Expand All @@ -150,7 +161,7 @@ On Windows,
set PATH=%PATH%;c:/path/to/eask/bin
```

Once you have set it up correctly, try `eask --version` then you should see
Once you have set it up correctly, try `eask --version` then you should see
the current eask's version number! 🎉 🎊


Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"which": "^4.0.0",
"yargs": "^17.0.0"
},
"devDependencies": {
"pkg": "^5.0.0"
},
"files": [
"cmds",
"src",
Expand Down
Loading