Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
650
Issues
650
List
Boards
Labels
Service Desk
Milestones
Merge Requests
197
Merge Requests
197
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
3ca28703
Commit
3ca28703
authored
Sep 18, 2016
by
Jakub Jirutka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main/zsh: add subpackages -calendar, -completion, -vcs, -zftp
parent
72696bba
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
98 additions
and
4 deletions
+98
-4
main/zsh/APKBUILD
main/zsh/APKBUILD
+58
-2
main/zsh/zsh.post-upgrade
main/zsh/zsh.post-upgrade
+20
-1
main/zsh/zsh.post-upgrade
main/zsh/zsh.post-upgrade
+20
-1
No files found.
main/zsh/APKBUILD
View file @
3ca28703
...
...
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
zsh
pkgver
=
5.2
pkgrel
=
1
pkgrel
=
2
pkgdesc
=
"A very advanced and programmable command interpreter (shell)"
url
=
"http://www.zsh.org/"
arch
=
"all"
...
...
@@ -15,14 +15,22 @@ source="http://www.zsh.org/pub/$pkgname-$pkgver.tar.xz
fix-zle-segfault.patch
fix-oom-fatal-error.patch
fix-vcs_info.patch"
subpackages
=
"
$pkgname
-doc"
subpackages
=
"
$pkgname
-doc
$pkgname
-calendar
$pkgname
-completion
$pkgname
-vcs
$pkgname
-zftp"
builddir
=
"
$srcdir
/
$pkgname
-
$pkgver
"
_libdir
=
"usr/lib/zsh/
$pkgver
"
_sharedir
=
"usr/share/zsh/
$pkgver
"
prepare
()
{
cd
"
$builddir
"
default_prepare
||
return
1
update_config_sub
||
return
1
# Remove completions that are useless on Alpine.
cd
Completion
rm
-Rf
AIX BSD Cygwin Darwin Debian Mandriva Redhat Solaris openSUSE
}
build
()
{
...
...
@@ -52,6 +60,54 @@ package() {
install
-Dm644
"
$srcdir
"
/zprofile
"
$pkgdir
"
/etc/zsh/zprofile
}
doc
()
{
default_doc
||
return
1
_submv
$_sharedir
/help
}
calendar
()
{
pkgdesc
=
"Calendar Function System for ZSH"
arch
=
"noarch"
depends
=
"
$pkgname
"
_submv
$_sharedir
/functions/Calendar
}
completion
()
{
pkgdesc
=
"Base completions for ZSH"
arch
=
"noarch"
depends
=
"
$pkgname
"
local
destdir
=
"
$subpkgdir
/
$_sharedir
/functions/Completion"
cd
"
$pkgdir
"
mkdir
-p
"
$destdir
"
find
$_sharedir
/functions/Completion/
*
-type
d
-prune
\
-exec
mv
{}
"
$destdir
"
/ +
}
vcs
()
{
pkgdesc
=
"Version Control Information module for ZSH (vcs_info)"
arch
=
"noarch"
depends
=
"
$pkgname
"
_submv
$_sharedir
/functions/VCS_Info
}
zftp
()
{
pkgdesc
=
"Zftp Function System for ZSH"
depends
=
"
$pkgname
"
_submv
$_libdir
/zsh/zftp.so
||
return
1
_submv
$_sharedir
/functions/Zftp
}
_submv
()
{
local
path
=
"
$1
"
mkdir
-p
"
$subpkgdir
"
/
${
path
%/*
}
mv
"
$pkgdir
"
/
$path
"
$subpkgdir
"
/
$path
}
md5sums
=
"afe96fde08b70e23c1cab1ca7a68fb34 zsh-5.2.tar.xz
a5e93cd6880da04a63fc4fcaaa03987f zprofile
1413688affa980b053dd2cdc784f8626 fix-zle-segfault.patch
...
...
main/zsh/zsh.post-upgrade
deleted
120000 → 0
View file @
72696bba
zsh.post-install
\ No newline at end of file
main/zsh/zsh.post-upgrade
0 → 100644
View file @
3ca28703
#!/bin/sh
add-shell
'/bin/zsh'
ver_new
=
"
$1
"
ver_old
=
"
$2
"
if
[
"
$(
apk version
-t
"
$ver_old
"
"5.2-r2"
)
"
=
"<"
]
;
then
cat
<<-
EOF
*
* Some modules has been moved into subpackages:
* zsh-calendar calendar function system
* zsh-completion completion functions
* zsh-vcs version control information (vcs_info)
* zsh-zftp zftp function system
*
EOF
fi
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment