Add customized version of bashmarks Git package
This commit is contained in:
parent
a71478ac39
commit
f379af45c6
|
@ -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"
|
||||
}
|
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue