This commit is contained in:
Tobias Manske 2018-04-05 14:12:29 +02:00
parent 0180550784
commit d897e4bec3
No known key found for this signature in database
GPG Key ID: 978D99F12D4E041F
5 changed files with 73 additions and 1 deletions

1
.gitignore vendored
View File

@ -35,7 +35,6 @@ __pycache__/
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/

View File

@ -0,0 +1,40 @@
# Maintainer: Julien Pecqueur (JPEC) <jpec[at]julienpecqueur[dot]net>
pkgname=liquidprompt-git
pkgver=20130314
pkgrel=3
pkgdesc="An intelligent and non intrusive prompt for bash and zsh"
url="https://github.com/nojhan/liquidprompt"
arch=('any')
license=('AGPLv3')
optdepends=('screen' 'acpi')
makedepends=('git')
md5sums=('SKIP')
install=liquidprompt.install
_gitroot="git://github.com/nojhan/liquidprompt.git"
_gitname="liquidprompt"
build() {
cd ${srcdir}/
msg "Connecting to the GIT server...."
if [[ -d ${srcdir}/${_gitname} ]] ; then
cd ${_gitname}
git reset --hard
git pull origin
msg "The local files are updated..."
else
msg "Cloning git repo..."
git clone ${_gitroot}
cd ${_gitname}
fi
git reset --hard
msg "GIT checkout done."
}
package() {
cd "${srcdir}/${_gitname}"
# install files
install -Dm755 liquidprompt "$pkgdir/usr/bin/liquidprompt"
install -Dm644 liquidpromptrc-dist "$pkgdir/etc/liquidpromptrc"
}
# vim:set ts=2 sw=2 et:

View File

@ -0,0 +1,4 @@
post_install() {
echo "Use 'source liquidprompt' to enable the prompt."
}

View File

@ -0,0 +1,18 @@
#!/bin/sh
echo "Creating Debian's package..."
nano ./liquidprompt/DEBIAN/control
echo "Copying files..."
cp ../../liquidprompt ./liquidprompt/usr/bin/liquidprompt
cp ../../liquidpromptrc-dist ./liquidprompt/etc/liquidpromptrc
chmod a+x ./liquidprompt/usr/bin/liquidprompt
echo "Building liquidprompt.deb..."
dpkg-deb -b liquidprompt
echo "Deleting files..."
rm -f ./liquidprompt/etc/*
rm -f ./liquidprompt/usr/bin/*
echo "Done !"

View File

@ -0,0 +1,11 @@
Package: liquidprompt
Version: 1.3-0
Section: base
Priority: optional
Architecture: all
Depends: bash
Recommends: acpi
Suggests: git, screen, tmux
Maintainer: Julien Pecqueur <jpec@julienpecqueur.net>
Description: A slick adaptative prompt for Bash and Zsh.
Homepage: http://github.com/nojhan/liquidprompt