main/postmarketos-dev: new aport (MR 5180)
This package is meant to encompass what an average developer would want from a postmarketOS image. We plan to provide -dev variants of some postmarketOS images for some devices for use by the Linux mobile developer community. These should include useful tools out of the box and provide a familiar shell and coreutils. Signed-off-by: Caleb Connolly <caleb@postmarketos.org> [ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
ac56b171f2
commit
7f3e832574
35
main/postmarketos-dev/APKBUILD
Normal file
35
main/postmarketos-dev/APKBUILD
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Maintainer: Caleb Connolly <caleb@postmarketos.org>
|
||||
pkgname=postmarketos-dev
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgdesc="postmarketOS development tools"
|
||||
url="https://postmarketos.org"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
options="!check"
|
||||
depends="
|
||||
htop
|
||||
coreutils
|
||||
nano
|
||||
psutils
|
||||
iputils
|
||||
alpine-sdk
|
||||
findutils
|
||||
gawk
|
||||
bash
|
||||
bash-completion
|
||||
"
|
||||
install="$pkgname.post-install $pkgname.post-deinstall"
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir/etc/skel"
|
||||
cat > "$pkgdir/etc/skel/.bashrc" <<EOF
|
||||
# Just set a nice prompt
|
||||
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
|
||||
EOF
|
||||
|
||||
cat > "$pkgdir/etc/skel/.bash_profile" <<EOF
|
||||
# Source the users bashrc (global one is sourced by /etc/profile.d/00-bashrc.sh)
|
||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||
EOF
|
||||
}
|
5
main/postmarketos-dev/postmarketos-dev.post-deinstall
Normal file
5
main/postmarketos-dev/postmarketos-dev.post-deinstall
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -s /usr/local/bin/vim ]; then
|
||||
rm /usr/local/bin/vim
|
||||
fi
|
6
main/postmarketos-dev/postmarketos-dev.post-install
Normal file
6
main/postmarketos-dev/postmarketos-dev.post-install
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ ! -e /usr/local/bin/vim ]; then
|
||||
echo "Installing vim -> neovim symlink..."
|
||||
ln -s /usr/bin/nvim /usr/local/bin/vim
|
||||
fi
|
Loading…
Reference in New Issue
Block a user