blob: c158db24cbdb52448637401fc166d7033ee56b60 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Maintainer: Eris Nihila <sp0t1fyfr33tr1alabus3@outlook.com>
#
#
pkgname=aurtool-zsh-git
pkgver=2.0_alpha.7
pkgrel=5
pkgdesc="A lightweight aur package management utility written in zshell"
arch=('any')
url="https://www.github.com/m1ndflay3r/aurtool-zsh"
license=('GPL-3.0')
depends=(
'pacman-contrib'
'm4'
'gawk'
'autoconf'
'automake'
'findutils'
'binutils'
'gettext'
'bison'
'sed'
'file'
'fakeroot'
'flex'
'gcc'
'grep'
'groff'
'gzip'
'libtool'
'texinfo'
'make'
'pacman'
'patch'
'pkgconf'
'sudo'
'which'
'git'
'pacman-contrib'
'zsh'
)
optdepends=(
'nano: for editing PKGBUILD during install'
'vim: for editing PKGBUILD during install'
'package-query: actually a required dependency, but moved to optdepends as aurtool installs it automatically on first launch'
)
provides=(
'aurtool'
'aurtool-git'
)
conflicts=(
'aurtool'
'aurtool-git'
)
package() {
git clone https://github.com/m1ndflay3r/aurtool-zsh aurtool-zsh-git
mv aurtool-zsh-git/aurtool .
mv aurtool-zsh-git/resources/libaurtool .
mv aurtool-zsh-git/README.md .
mkdir -p "$pkgdir"/usr/bin
mkdir -p "$pkgdir"/usr/include
mkdir -p "$pkgdir"/etc
# zsh zcompile aurtool
# echo '#!/usr/bin/env zsh' > compile.zsh
# echo " " >> compile.zsh
# echo "zcompile aurtool" >> compile.zsh
# echo "zcompile libaurtool" >> compile.zsh
# chmod 755 compile.zsh
# ./compile.zsh
# mv aurtool aurtool.bak
# mv aurtool.zwc aurtool
# zsh zcompile libaurtool
# mv libaurtool libaurtool.bak
# mv libaurtool.zwc libaurtool
install -m755 aurtool "$pkgdir"/usr/bin/aurtool
install -m644 libaurtool "$pkgdir"/usr/include/libaurtool
install -m644 README.md "$pkgdir"/etc/aurtool-README.md
}
|