Add customized version of bashmarks Git package

This commit is contained in:
Martchus 2019-08-17 13:56:52 +02:00
parent a71478ac39
commit f379af45c6
2 changed files with 43 additions and 0 deletions

27
bashmarks/custom/PKGBUILD Normal file
View File

@ -0,0 +1,27 @@
# Maintainer of AUR version: Tommaso Sardelli <lacapannadelloziotom [at] gmail [dot] com>
_pkgname=bashmarks
pkgname=${_pkgname}-custom-git
pkgver=48.3626ed7
pkgrel=1
pkgdesc='A shell script that allows you to save and jump to commonly used directories'
arch=('any')
url="https://github.com/Martchus/${_pkgname}/tree/adjustments"
license=('BSD')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
install="$pkgname.install"
source=("git://github.com/Martchus/${_pkgname}.git#branch=adjustments")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git rev-list --count HEAD
}
package() {
cd "$srcdir/$_pkgname"
install -Dm644 bashmarks.sh $pkgdir/usr/share/$_pkgname/${_pkgname}.sh
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
}

View File

@ -0,0 +1,16 @@
post_install () {
echo "bashmarks-git has been installed, don't forget to add the following line"
echo "to either ~/.bashrc or ~/.bash_profile to enable bashmarks."
echo
echo "source /usr/share/bashmarks/bashmarks.sh"
echo
}
post_remove () {
echo "bashmarks-git has been removed, don't forget to remove the following line"
echo "from either ~/.bashrc or ~/.bash_profile"
echo
echo "source /usr/share/bashmarks/bashmarks.sh"
echo
}