diff --git a/bashmarks/custom/PKGBUILD b/bashmarks/custom/PKGBUILD new file mode 100644 index 00000000..f9948ab9 --- /dev/null +++ b/bashmarks/custom/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer of AUR version: Tommaso Sardelli + +_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" +} diff --git a/bashmarks/custom/bashmarks-custom-git.install b/bashmarks/custom/bashmarks-custom-git.install new file mode 100644 index 00000000..37bce3f2 --- /dev/null +++ b/bashmarks/custom/bashmarks-custom-git.install @@ -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 +} +