-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from pwnwriter/master
feat(install): Arch user repository pkgbuilds // installation guide
- Loading branch information
Showing
5 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
pkgbase = presenterm-bin | ||
pkgdesc = A terminal slideshow tool | ||
pkgver = 0.2.1 | ||
pkgrel = 1 | ||
url = https://github.com/mfontanini/presenterm | ||
arch = x86_64 | ||
license = BSD 2-Clause | ||
source = presenterm-bin-0.2.1.tar.gz::https://github.com/mfontanini/presenterm/releases/download/v0.2.1/presenterm-0.2.1-x86_64-unknown-linux-gnu.tar.gz | ||
sha512sums = 6f1f76b208b2586aee6ef6884699866ca8f22fc242a7cc83b767fff3e3d8fc22bfebd2fd25151e87faf88fe352758c4877823726dc41ce8390e481038dfa56e5 | ||
|
||
pkgname = presenterm-bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Maintainer: pwnwriter < [email protected] > | ||
|
||
pkgname=presenterm-bin | ||
pkgver=0.2.1 | ||
pkgrel=1 | ||
pkgdesc="A terminal slideshow tool" | ||
arch=('x86_64') | ||
url="https://github.com/mfontanini/presenterm" | ||
license=('BSD 2-Clause') | ||
source=("$pkgname-$pkgver.tar.gz::$url/releases/download/v$pkgver/presenterm-$pkgver-x86_64-unknown-linux-gnu.tar.gz") | ||
sha512sums=('6f1f76b208b2586aee6ef6884699866ca8f22fc242a7cc83b767fff3e3d8fc22bfebd2fd25151e87faf88fe352758c4877823726dc41ce8390e481038dfa56e5') | ||
|
||
build() { | ||
# Nothing to do here for a binary package | ||
return 0 | ||
} | ||
|
||
package() { | ||
cd "${pkgname%-bin}-$pkgver" | ||
install -Dm 755 "${pkgname%-bin}" -t "${pkgdir}/usr/bin" | ||
install -Dm 644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md" | ||
install -Dm 644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
pkgbase = presenterm-git | ||
pkgdesc = A terminal slideshow tool | ||
pkgver = 0.2.1.r1.g0f901be | ||
pkgrel = 1 | ||
url = https://github.com/mfontanini/presenterm | ||
arch = x86_64 | ||
license = BSD 2-Clause | ||
makedepends = cargo | ||
makedepends = git | ||
provides = presenterm | ||
conflicts = presenterm | ||
source = git+https://github.com/mfontanini/presenterm | ||
sha512sums = SKIP | ||
|
||
pkgname = presenterm-git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Maintainer: PwnWriter <[email protected]> | ||
|
||
pkgname=presenterm-git | ||
pkgver=0.2.1.r1.g0f901be | ||
pkgrel=1 | ||
pkgdesc="A terminal slideshow tool" | ||
arch=('x86_64') | ||
url="https://github.com/mfontanini/presenterm" | ||
license=('BSD 2-Clause') | ||
makedepends=('cargo' 'git') | ||
conflicts=("${pkgname%-git}") | ||
provides=("${pkgname%-git}") | ||
source=("git+${url}") | ||
sha512sums=('SKIP') | ||
|
||
pkgver() { | ||
cd "${pkgname%-git}" | ||
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' | ||
} | ||
|
||
prepare() { | ||
cd "${pkgname%-git}" | ||
cargo fetch --locked --target "$CARCH-unknown-linux-gnu" | ||
} | ||
|
||
build() { | ||
cd "${pkgname%-git}" | ||
cargo build --release --frozen | ||
} | ||
|
||
check() { | ||
cd "${pkgname%-git}" | ||
cargo test --frozen | ||
} | ||
|
||
package() { | ||
cd "${pkgname%-git}" | ||
install -Dm 755 "target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin" | ||
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" | ||
install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters