blob: afd81a9f92dbe535866e38c910ede3dcce95d2d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: Wellinton Vieira <wellintonvieira.office@gmail.com>
pkgname="aurup"
pkgver="1.78"
pkgrel=1
pkgdesc="The simplify finding and installing packages AUR helper"
arch=("x86_64")
url="https://github.com/nellowint/$pkgname"
license=("GNU")
depends=("bash-completion" "curl" "jq" "tar")
makedepends=("git")
source=("git+https://github.com/nellowint/$pkgname.git")
md5sums=("SKIP")
package() {
cd "$pkgname"
install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname.sh"
sudo install -Dm755 "$pkgname-complete.sh" "/usr/share/bash-completion/completions/$pkgname-complete.sh"
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
sed -i "/$pkgname/d" "/$HOME/.bashrc"
echo -e "\n\nif [ -e /usr/bin/$pkgname.sh ]; then #$pkgname
alias $pkgname='sh /usr/bin/$pkgname.sh' #$pkgname
source /usr/share/bash-completion/completions/$pkgname-complete.sh #$pkgname
fi #$pkgname" >> "/$HOME/.bashrc"
echo $(source "/$HOME/.bashrc")
}
|