-
Notifications
You must be signed in to change notification settings - Fork 5
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 #39 from ifd3f/aur
AUR scripts
- Loading branch information
Showing
7 changed files
with
61 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
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,2 @@ | ||
build | ||
/caligula-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,15 @@ | ||
rootdir=$(shell pwd) | ||
|
||
.PHONY: main | ||
main: inputs dockerimage build caligula-bin | ||
docker run --rm -it -v $(rootdir)/inputs:/inputs:ro -v $(rootdir)/caligula-bin:/caligula-bin caligula-packaging | ||
|
||
caligula-bin: | ||
git clone ssh://aur@aur.archlinux.org/caligula-bin.git | ||
|
||
.PHONY: dockerimage | ||
dockerimage: dockerenv | ||
docker build -t caligula-packaging $< | ||
|
||
build: | ||
mkdir -p build |
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 @@ | ||
Included here are some scripts of questionable quality for making the AUR build go brrrr. |
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,12 @@ | ||
FROM archlinux | ||
|
||
RUN pacman -Syu --noconfirm \ | ||
base-devel \ | ||
rust \ | ||
sudo | ||
|
||
RUN useradd -m user | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
ENTRYPOINT [ "/entrypoint.sh" ] |
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 @@ | ||
#!/bin/sh | ||
|
||
set -euxo pipefail | ||
|
||
chown -R user /caligula-bin | ||
|
||
{ | ||
cd /caligula-bin | ||
cp /inputs/caligula-bin-PKGBUILD ./PKGBUILD | ||
sudo -u user makepkg --printsrcinfo | tee .SRCINFO | ||
} |
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,16 @@ | ||
pkgname=caligula-bin | ||
pkgver=0.3.0 | ||
pkgrel=1 | ||
pkgdesc="A lightweight, user-friendly disk imaging tool" | ||
url="https://github.com/ifd3f/caligula" | ||
license=("GPL-3.0") | ||
arch=("x86_64") | ||
provides=("caligula") | ||
conflicts=("caligula") | ||
source=("https://github.com/ifd3f/caligula/releases/download/v$pkgver/caligula-$CARCH-linux") | ||
sha256sums=("ae1dda2649d7c9152b032b8ded1623bef8705296ea11d6060471ff3f63aa1046") | ||
|
||
package() { | ||
mv caligula-x86_64-linux caligula | ||
install -Dm755 caligula -t "$pkgdir/usr/bin" | ||
} |