pcre group build

This commit is contained in:
AlmAck 2014-02-12 23:30:01 +01:00
parent 4e28b6d71d
commit dbd4e22270
13 changed files with 204 additions and 198 deletions

View File

@ -1,16 +1,17 @@
# #
# Chakra Packages for Chakra, part of chakra-project.org # Chakra Packages for Chakra, part of chakra-project.org
# #
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org> # maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config # include global config
pkgname=cherokee pkgname=cherokee
pkgver=1.2.101 pkgver=1.2.103
pkgrel=5 _gitver=d021376
_pkgver=${pkgver}.${_gitver}
pkgrel=1
pkgdesc="A very fast, flexible and easy to configure Web Server" pkgdesc="A very fast, flexible and easy to configure Web Server"
arch=('i686' 'x86_64') arch=('x86_64')
url="http://www.cherokee-project.com/" url="http://www.cherokee-project.com/"
license=('GPL2') license=('GPL2')
depends=('openssl' 'pcre') depends=('openssl' 'pcre')
@ -26,43 +27,25 @@ optdepends=('python2: cherokee-admin (administrative web interface)'
categories=('network') categories=('network')
backup=('etc/cherokee/cherokee.conf' backup=('etc/cherokee/cherokee.conf'
'etc/logrotate.d/cherokee') 'etc/logrotate.d/cherokee')
options=('!libtool') source=("https://github.com/${pkgname}/webserver/archive/v${_pkgver}.zip"
source=("http://www.cherokee-project.com/download/1.2/${pkgver}/${pkgname}-${pkgver}.tar.gz"
'cherokee.service' 'cherokee.service'
'cherokee.logrotate' 'cherokee.logrotate')
'fix-ctk-path-handler-match.patch' sha256sums=('5d8a5d99cb7382e2b851bbdc162bc46c192dc6b589ae34c34a6299ab419efe31'
'gentoo-cherokee-1.2.98-linux3.patch'
'gentoo-cherokee-1.2.99-chakra-customized.patch'
'cherokee-1.2.101-ffmpeg0.11.patch')
sha256sums=('ca465ab3772479fc843b38ffc45113bf24d8bfae9185cdd5176b099d5a17feb8'
'a5ba46821799eaeea39c35f46ae51d58a8394f5e729889729f814562561d1edb' 'a5ba46821799eaeea39c35f46ae51d58a8394f5e729889729f814562561d1edb'
'20e26d633f8c1cd90eb21f41dd163b73a83846e405b1ce995e072c4efefc522e' '20e26d633f8c1cd90eb21f41dd163b73a83846e405b1ce995e072c4efefc522e')
'f682e9e6287e1db7d1843843143afa70b687f59807346aca9ddf19a35bacee45'
'cc03fa321bb01cd4a7026685ef2e3fc606fd53da056f629307c6e1904987ad1b'
'298a9394ca7c0e50c320bfc08f8674d23929272825cd3001c955fc560e62b662'
'6bcdcb8eaccb5516478a0c36960fbacc3d68f8bc326b9b526c388e0607a65116')
build() { build() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "webserver-${_pkgver}"
# Fix path matching bug in CTK apps (e.g. market)
patch -Np1 -i "${srcdir}/fix-ctk-path-handler-match.patch"
# ffmpeg patch
patch -Np1 -i "${srcdir}/cherokee-1.2.101-ffmpeg0.11.patch"
# Apply Gentoo patches
patch -Np1 -i "${srcdir}/gentoo-cherokee-1.2.98-linux3.patch"
patch -Np1 -i "${srcdir}/gentoo-cherokee-1.2.99-chakra-customized.patch"
# Use subdirectory for logs # Use subdirectory for logs
sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre sed -i -r 's|(%localstatedir%/log)|\1/cherokee|' cherokee.conf.sample.pre
./configure --prefix=/usr \ ./autogen.sh \
--prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
--with-wwwroot=/srv/http \
--disable-static \ --disable-static \
--with-wwwroot=/srv/http \
--with-wwwuser=http \ --with-wwwuser=http \
--with-wwwgroup=http \ --with-wwwgroup=http \
--with-python=python2 \ --with-python=python2 \
@ -72,9 +55,9 @@ build() {
} }
package() { package() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "webserver-${_pkgver}"
make -j1 DESTDIR="${pkgdir}" install make DESTDIR="${pkgdir}" install
# PAM configuration file for cherokee # PAM configuration file for cherokee
install -D -m644 pam.d_cherokee "${pkgdir}/etc/pam.d/${pkgname}" install -D -m644 pam.d_cherokee "${pkgdir}/etc/pam.d/${pkgname}"

View File

@ -1,15 +1,15 @@
# #
# Chakra Packages for Chakra, part of chakra-project.org # Apps Packages for Chakra, part of chakra-project.org
# #
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org> # Contributor: Neophytos Kolokotronis <tetris4@gmail.com>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org> # Maintainer: Bruce Liu <brli@users.sourceforge.net>
pkgname=lighttpd pkgname=lighttpd
pkgver=1.4.31 pkgver=1.4.34
pkgrel=1 pkgrel=1
pkgdesc='A secure, fast, compliant and very flexible web-server.' pkgdesc='A secure, fast, compliant and very flexible web-server.'
license=('custom') license=('custom')
arch=('i686' 'x86_64') arch=('x86_64')
url="http://www.lighttpd.net/" url="http://www.lighttpd.net/"
depends=('pcre' 'bzip2' 'libldap' 'util-linux') depends=('pcre' 'bzip2' 'libldap' 'util-linux')
makedepends=('fcgi' 'libmysqlclient' 'lua' 'libxml2' 'e2fsprogs' 'sqlite3' 'gdbm' 'pkgconfig') makedepends=('fcgi' 'libmysqlclient' 'lua' 'libxml2' 'e2fsprogs' 'sqlite3' 'gdbm' 'pkgconfig')
@ -19,17 +19,17 @@ optdepends=('libxml2: mod_webdav'
'sqlite3: mod_webdav') 'sqlite3: mod_webdav')
categories=('network') categories=('network')
backup=('etc/lighttpd/lighttpd.conf' 'etc/logrotate.d/lighttpd') backup=('etc/lighttpd/lighttpd.conf' 'etc/logrotate.d/lighttpd')
options=('!libtool' 'emptydirs') options=('emptydirs')
install=${pkgname}.install install=${pkgname}.install
source=("http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${pkgver}.tar.bz2" source=("http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${pkgver}.tar.bz2"
'lighttpd.tmpfiles' 'lighttpd.tmpfiles'
'lighttpd.service' 'lighttpd.service'
'lighttpd.logrotate.d' 'lighttpd.logrotate.d'
'lighttpd.conf') 'lighttpd.conf')
sha256sums=('5209e7a25d3044cb21b34d6a2bb3a6f6c216ba903ea486a803d070582e5e26ac' sha256sums=('e4b5682ef21b0bdea4a18dc7ccac6b5a0bf526b691ad0fe5c25c8b9fc38d0c12'
'd8a185145a7c08b4fd8c8e6c12dae3e176389dd9b1c66e239757b2ba5108c871' 'd8a185145a7c08b4fd8c8e6c12dae3e176389dd9b1c66e239757b2ba5108c871'
'708cefe97541edba73f572ed3836bd056462b1467e45e1912c9d960139929696' '708cefe97541edba73f572ed3836bd056462b1467e45e1912c9d960139929696'
'c1159894cd1797e8421bb381c08df33560345ba15e20763cf8922fcc94c549d7' 'b7c1f4a6a886f0f8e0f0b3248cf004aab2dd67c740f7389d7e1eb08b3eaa0d39'
'48b531fbcc58a40ec26716c93f0b0d4a33bed1667d8ef77c17b36d807b5c39a3') '48b531fbcc58a40ec26716c93f0b0d4a33bed1667d8ef77c17b36d807b5c39a3')
build() { build() {

View File

@ -1,29 +1,23 @@
# #
# Chakra Packages for Chakra, part of chakra-project.org # Chakra Packages for Chakra, part of chakra-project.org
# #
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org> # Contributor: abveritas@chakra-project.org
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org> # Maintainer: Bruce Liu <brli@users.sourceforge.net>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=mc pkgname=mc
pkgver=4.7.5 pkgver=4.8.11
pkgrel=1 pkgrel=2
pkgdesc="A filemanager/shell that emulates Norton Commander" pkgdesc="A filemanager/shell that emulates Norton Commander"
arch=('i686' 'x86_64') arch=('x86_64')
url="http://www.ibiblio.org/mc/" url="http://www.ibiblio.org/mc/"
license=('GPL') license=('GPL')
depends=('e2fsprogs' 'glib2' 'pcre' 'gpm>=1.20.4' 'slang') depends=('e2fsprogs' 'glib2' 'pcre' 'gpm>=1.20.4' 'slang')
makedepends=('libxt' 'libx11') makedepends=('libxt' 'libx11')
optdepends=('p7zip: support for 7zip archives') optdepends=('p7zip: support for 7zip archives')
provides=('mcedit-pkgbuild-syntax') screenshot=('http://ompldr.org/vOG9vNg')
conflicts=('mc-utf8')
replaces=('mc-utf8')
categories=('system')
options=('!emptydirs' '!makeflags') options=('!emptydirs' '!makeflags')
source=(http://www.midnight-commander.org/downloads/${pkgname}-${pkgver}.tar.bz2) source=("https://www.midnight-commander.org/downloads/${pkgname}-${pkgver}.tar.xz")
sha256sums=('0d2b4e87b8a4158edf54380df9402b4a1a19f7494ef06dd0a0a3e3ff6a2b50f1') sha256sums=('1877ea844f9d71e133b9e03ca3bebcd7b10b9ba5b419b8d268e255816fe1993a')
build() { build() {
cd ${srcdir}/${pkgname}-${pkgver} cd ${srcdir}/${pkgname}-${pkgver}
@ -31,12 +25,12 @@ build() {
./configure \ ./configure \
--prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \ --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
--enable-background --enable-charset --enable-largefile \ --enable-background --enable-charset --enable-largefile \
--with-edit --with-gpm-mouse --with-mmap --with-samba \ --with-edit --with-gpm-mouse --with-mmap --enable-vfs-smb \
--with-screen=slang --with-subshell --with-vfs --with-x \ --with-screen=slang --with-subshell --with-vfs --with-x \
--without-debug --without-gnome --without-included-gettext \ --without-debug --without-gnome --without-included-gettext \
--libexecdir=/usr/lib --libexecdir=/usr/lib
make || return 1 make
} }
package() { package() {
@ -44,10 +38,13 @@ package() {
make DESTDIR=${pkgdir} install make DESTDIR=${pkgdir} install
# Fix FS#15177 # Fixes
sed -i 's|op_has_zipinfo = 0|op_has_zipinfo = 1|' \ sed -i 's|op_has_zipinfo = 0|op_has_zipinfo = 1|' \
${pkgdir}/usr/lib/mc/extfs.d/uzip ${pkgdir}/usr/lib/mc/extfs.d/uzip
# Fix FS#18312 rm "${pkgdir}/usr/lib/mc/extfs.d/u7z"
rm ${pkgdir}/usr/lib/mc/extfs.d/u7z
sed 's#/usr/bin/env python#/usr/bin/python2#' \
-i "${pkgdir}/usr/lib/mc/extfs.d/s3+"
} }

View File

@ -1,42 +0,0 @@
--- /lib/tty/tty-internal.h
+++ /lib/tty/tty-internal.h
@@ -8,4 +8,15 @@
#include "lib/global.h" /* include <glib.h> */
+
+/* Taken from S-Lang's slutty.c */
+#ifdef ultrix /* Ultrix gets _POSIX_VDISABLE wrong! */
+# define NULL_VALUE -1
+#else
+# ifdef _POSIX_VDISABLE
+# define NULL_VALUE _POSIX_VDISABLE
+# else
+# define NULL_VALUE 255
+# endif
+#endif
/* If true lines are shown by spaces */
--- /lib/tty/tty-ncurses.c
+++ /lib/tty/tty-ncurses.c
@@ -63,4 +63,5 @@
/*** file scope macro definitions **************************************/
+
#if defined(_AIX) && !defined(CTRL)
# define CTRL(x) ((x) & 0x1f)
@@ -159,4 +160,6 @@
/* use Ctrl-g to generate SIGINT */
cur_term->Nttyb.c_cc[VINTR] = CTRL ('g'); /* ^g */
+ /* disable SIGQUIT to allow use Ctrl-\ key */
+ cur_term->Nttyb.c_cc[VQUIT] = NULL_VALUE;
tcsetattr (cur_term->Filedes, TCSANOW, &cur_term->Nttyb);
--- /misc/syntax/Syntax
+++ /misc/syntax/Syntax
@@ -140,5 +140,5 @@
include spec.syntax
-file ..\*\\.repo$ YUM\sRepo File
+file ..\*\\.repo$ YUM\sRepo\sFile
include yum-repo.syntax

43
nmap/PKGBUILD Normal file
View File

@ -0,0 +1,43 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
pkgname=nmap
pkgver=6.40
pkgrel=2
pkgdesc="A network exploration tool and security/port scanner"
arch=('x86_64')
url="http://nmap.org"
license=('custom:GPL')
depends=('pcre' 'openssl' 'libpcap>=1.0.0' 'lua')
# pygtk is needed for zenmap
makedepends=('python2')
optdepends=('pygtk: gui for nmap - zenmap')
options=('!makeflags')
source=(http://nmap.org/dist/${pkgname}-${pkgver}.tar.bz2)
md5sums=('c0e2f3370e1fb97fb53185b15aa22aff')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export PYTHON=python2
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--mandir=/usr/share/man
# added LUA_LIBS as workaround to liblua not correctly referenced (http://ubuntuforums.org/showthread.php?t=2164741)
make "LUA_LIBS=../liblua/liblua.a -ldl -lm"
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
# remove zenmap uninstall script
rm "${pkgdir}/usr/bin/uninstall_zenmap"
# install custom GPL2 license
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

View File

@ -1,41 +1,35 @@
# Chakra Packages for Chakra, part of chakra-project.org # Maintainer: abveritas@chakra-project.org
#
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=privoxy pkgname=privoxy
pkgver=3.0.17 pkgver=3.0.21
pkgrel=1 pkgrel=2
pkgdesc='A web proxy with advanced filtering capabilities.' pkgdesc='A web proxy with advanced filtering capabilities.'
arch=('i686' 'x86_64') arch=('x86_64')
url='http://www.privoxy.org' url='http://www.privoxy.org'
license=('GPL') license=('GPL')
depends=('pcre' 'zlib') depends=('pcre' 'zlib')
makedepends=('autoconf') makedepends=('autoconf')
categories=('network')
backup=('etc/conf.d/privoxy' backup=('etc/conf.d/privoxy'
'etc/privoxy/'{config,trust,default.action,user.filter,default.filter} 'etc/privoxy/'{config,trust,default.action,user.filter,default.filter}
'etc/privoxy/'{match-all,user}.action 'etc/privoxy/'{match-all,user}.action
'etc/logrotate.d/privoxy') 'etc/logrotate.d/privoxy')
install='privoxy.install' categories=('network')
install=${pkgname}.install
source=("http://downloads.sourceforge.net/ijbswa/${pkgname}-${pkgver}-stable-src.tar.gz" source=("http://downloads.sourceforge.net/ijbswa/${pkgname}-${pkgver}-stable-src.tar.gz"
'privoxy' 'privoxy-logrotate' # renamed the entry, because *.log is in gitignore
'privoxy.logrotate.d' 'privoxy.conf.d'
'privoxy.conf.d') 'privoxy.service')
md5sums=('9d363d738a3f3d73e774d6dfeafdb15f' md5sums=('79558f2545cfcf9731f7de611646d837'
'a799e4d4f0ebb7f08190fa2bc961f439' 'fc3046377137003726a151ee27b142a2'
'a364c34c8dc6eb78c9a6b777237932de' '27830ef79418e277b90c1c1fa933f876'
'27830ef79418e277b90c1c1fa933f876') '4c154a126ec17b02c623e3d451e062d9')
build() { build() {
cd "${srcdir}/${pkgname}-${pkgver}-stable" cd "${srcdir}/${pkgname}-${pkgver}-stable"
autoheader autoheader
autoconf autoconf
./configure --prefix=/usr --sysconfdir=/etc/privoxy ./configure --prefix=/usr --sysconfdir=/etc/privoxy --enable-compression
make make
} }
@ -49,8 +43,9 @@ package() {
# Don't overwrite existing log files! # Don't overwrite existing log files!
rm "${pkgdir}/var/log/privoxy/"* rm "${pkgdir}/var/log/privoxy/"*
install -Dm0755 "${srcdir}/privoxy" "${pkgdir}/etc/rc.d/privoxy" # Install start scripts and config files
install -Dm0644 "${srcdir}/privoxy.logrotate.d" "${pkgdir}/etc/logrotate.d/privoxy" install -Dm0644 "${srcdir}/privoxy.service" "${pkgdir}/usr/lib/systemd/system/privoxy.service"
install -Dm0644 "${srcdir}/privoxy-logrotate" "${pkgdir}/etc/logrotate.d/privoxy"
install -Dm0644 "${srcdir}/privoxy.conf.d" "${pkgdir}/etc/conf.d/privoxy" install -Dm0644 "${srcdir}/privoxy.conf.d" "${pkgdir}/etc/conf.d/privoxy"
# Fix config paths. # Fix config paths.
@ -64,5 +59,8 @@ package() {
find "${pkgdir}/etc/privoxy/" -type d | xargs chmod 0770 find "${pkgdir}/etc/privoxy/" -type d | xargs chmod 0770
find "${pkgdir}/etc/privoxy/" -type f | xargs chmod 0660 find "${pkgdir}/etc/privoxy/" -type f | xargs chmod 0660
chmod 0770 "${pkgdir}/var/log/privoxy" chmod 0700 "${pkgdir}/var/log/privoxy"
# Avoid conflict with /var/run
rmdir "${pkgdir}/var/run"
} }

View File

@ -1,47 +0,0 @@
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
# source application-specific settings
[ -f /etc/conf.d/privoxy ] && . /etc/conf.d/privoxy
PID=`pidof -o %PPID /usr/sbin/privoxy`
case "$1" in
start)
stat_busy "Starting Privoxy"
# create missing logfiles
for f in logfile jarfile; do
touch "/var/log/privoxy/${f}"
chgrp "${PRIVOXY_GROUP}" "/var/log/privoxy/${f}"
chmod 0660 "/var/log/privoxy/${f}"
done
[ -z "$PID" ] && /usr/sbin/privoxy --user ${PRIVOXY_USER}.${PRIVOXY_GROUP} \
${PRIVOXY_ARGS} ${PRIVOXY_CONF}
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon privoxy
stat_done
fi
;;
stop)
stat_busy "Stopping Privoxy"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon privoxy
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0

View File

@ -0,0 +1,8 @@
/var/log/privoxy/logfile {
create 660 root privoxy
notifempty
compress
postrotate
/bin/kill -HUP `cat /var/run/privoxy.pid 2>/dev/null` 2> /dev/null || true
endscript
}

12
privoxy/privoxy.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=Privoxy Web Proxy With Advanced Filtering Capabilities
After=network.target
[Service]
Type=forking
PIDFile=/run/privoxy.pid
ExecStart=/usr/sbin/privoxy --pidfile /run/privoxy.pid --user privoxy.privoxy /etc/privoxy/config
SuccessExitStatus=15
[Install]
WantedBy=multi-user.target

37
shedskin/PKGBUILD Normal file
View File

@ -0,0 +1,37 @@
# Contributor Inkane <neoinkaneglade@aol.com>
# Contributor: Elkin Cruz <agnelkincc@gmail.com>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
pkgname=shedskin
pkgver=0.9.4
pkgrel=3
pkgdesc="A Python to C++ compiler"
arch=('any')
url="http://code.google.com/p/shedskin/"
license=('GPL3')
depends=('pcre' 'gc' 'python2')
makedepends=('git' 'python2')
source=("https://shedskin.googlecode.com/files/${pkgname}-${pkgver}.tgz")
sha1sums=('d337488b7072ab0c4c69616af42ef6c0b9fe7db0')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Python 2 fix
echo "#!/usr/bin/python2" > run
echo "import shedskin" >> run
echo "shedskin.main()" >> run
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Install the wrapperscript
install -Dm755 run "$pkgdir/usr/bin/shedskin"
# Install using setup.py
python2 setup.py install --prefix="$pkgdir/usr"
# Install the license
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

View File

@ -1,28 +1,34 @@
# #
# Chakra Packages for Chakra, part of chakra-project.org # Chakra Packages for Chakra, part of chakra-project.org
# #
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org> # maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=slang pkgname=slang
pkgver=2.2.4 pkgver=2.2.4
pkgrel=1 pkgrel=2
pkgdesc="S-Lang is a powerful interpreted language" pkgdesc="S-Lang is a powerful interpreted language"
arch=('x86_64') arch=('x86_64')
url="http://www.s-lang.org/" url="http://www.jedsoft.org/slang/"
license=('GPL') license=('GPL')
depends=('glibc' 'pcre' 'zlib') depends=('pcre' 'zlib')
backup=('etc/slsh.rc') backup=('etc/slsh.rc')
options=('!makeflags') options=('!makeflags')
source=(ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz) source=(ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2{,.asc})
sha256sums=('e334028e0c75c35406d10fe9e1686f36a615dcc6e2af90e8de25d299e8e6129f') md5sums=('7fcfd447e378f07dd0c0bae671fe6487'
'SKIP')
build() { build() {
cd "${srcdir}/${pkgname}-${pkgver}" cd ${pkgname}-${pkgver}
./configure --prefix=/usr --sysconfdir=/etc || return 1 ./configure --prefix=/usr --sysconfdir=/etc
make || return 1 make
make DESTDIR="${pkgdir}" install-all || return 1
} }
check() {
cd ${pkgname}-${pkgver}
make check
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install-all
}

View File

@ -1,31 +1,34 @@
# #
# Chakra Packages for Chakra, part of chakra-project.org # Chakra Packages for Chakra, part of chakra-project.org
# #
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org> # Maintainer: Fabian Kosmale <0inkane@googlemail.com>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org> # Contributor: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=zsh pkgname=zsh
pkgver=4.3.10 pkgver=5.0.5
pkgrel=4 pkgrel=2
pkgdesc='A very advanced and programmable command interpreter (shell) for UNIX' pkgdesc='A very advanced and programmable command interpreter (shell) for UNIX'
arch=('i686' 'x86_64') arch=('x86_64')
url='http://www.zsh.org/' url='http://www.zsh.org/'
license=('custom') license=('custom')
depends=('pcre' 'libcap') depends=('pcre' 'libcap' 'gdbm')
categories=('system')
install=zsh.install install=zsh.install
source=("ftp://ftp.zsh.org/pub/${pkgname}-${pkgver}.tar.bz2") source=("ftp://ftp.zsh.org/pub/${pkgname}-${pkgver}.tar.gz"
md5sums=('74c5b275544400082a1cde806c98682a') "zprofile")
md5sums=('6fb0e3e52a0f8de5ca63138391b81ce0'
'24a9335edf77252a7b5f52e079f7aef7')
build() { build() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "${srcdir}/${pkgname}-${pkgver}"
# FS#16360
sed -i 's/init.d/rc.d/g' Doc/Zsh/compsys.yo \ sed -i 's/init.d/rc.d/g' Doc/Zsh/compsys.yo \
Doc/zsh.texi \ Doc/zsh.texi \
Completion/Unix/Type/_services \ Completion/Unix/Type/_services \
Completion/Unix/Command/_init_d Completion/Unix/Command/_init_d
# Set correct keymap path
sed -i 's#/usr/share/keymaps#/usr/share/kbd/keymaps#g' Completion/Unix/Command/_loadkeys
./configure --prefix=/usr \ ./configure --prefix=/usr \
--bindir=/bin \ --bindir=/bin \
--enable-etcdir=/etc/zsh \ --enable-etcdir=/etc/zsh \
@ -38,16 +41,23 @@ build() {
--with-term-lib='ncursesw' \ --with-term-lib='ncursesw' \
--enable-multibyte \ --enable-multibyte \
--enable-function-subdirs \ --enable-function-subdirs \
--enable-fndir=/usr/share/zsh/functions \
--enable-scriptdir=/usr/share/zsh/scripts \
--with-tcsetpgrp \ --with-tcsetpgrp \
--enable-pcre \ --enable-pcre \
--enable-cap \ --enable-cap \
--enable-zsh-secure-free \ --enable-zsh-secure-free
--disable-gdbm
make make
} }
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
HOME="${srcdir}" make check
}
package() { package() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}/" install make DESTDIR="${pkgdir}/" install
install -D -m644 "${srcdir}/zprofile" "${pkgdir}/etc/zsh/zprofile"
install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
} }

1
zsh/zprofile Normal file
View File

@ -0,0 +1 @@
emulate sh -c 'source /etc/profile'