$startdir/pkg, $startdir/src → ${pkgdir}, ${srcdir}

parent 91e51836
...@@ -16,13 +16,13 @@ options=('!libtool') ...@@ -16,13 +16,13 @@ options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz) source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
build() { build() {
cd $startdir/src/$pkgname-$pkgver cd ${srcdir}/$pkgname-$pkgver
./configure --prefix=/usr --without-python ./configure --prefix=/usr --without-python
make || return 1 make || return 1
} }
package() { package() {
cd $startdir/src/$pkgname-$pkgver cd ${srcdir}/$pkgname-$pkgver
make DESTDIR=$pkgdir install make DESTDIR=$pkgdir install
install -Dm644 dicts/cracklib-small $pkgdir/usr/share/dict/cracklib-small install -Dm644 dicts/cracklib-small $pkgdir/usr/share/dict/cracklib-small
sh ./util/cracklib-format dicts/cracklib-small \ sh ./util/cracklib-format dicts/cracklib-small \
......
...@@ -14,6 +14,6 @@ source=('http://daemonizer.de/prism54/prism54-fw/fw-usb/2.13.25.0.lm87.arm') ...@@ -14,6 +14,6 @@ source=('http://daemonizer.de/prism54/prism54-fw/fw-usb/2.13.25.0.lm87.arm')
md5sums=('39be687c87544b892e7a8ffe7ffd9371') md5sums=('39be687c87544b892e7a8ffe7ffd9371')
build() { build() {
mkdir -p $startdir/pkg/usr/lib/firmware mkdir -p ${pkgdir}/usr/lib/firmware
install -m644 * $startdir/pkg/usr/lib/firmware/isl3887usb install -m644 * ${pkgdir}/usr/lib/firmware/isl3887usb
} }
...@@ -14,6 +14,6 @@ source=('http://daemonizer.de/prism54/prism54-fw/fw-softmac/2.13.12.0.arm') ...@@ -14,6 +14,6 @@ source=('http://daemonizer.de/prism54/prism54-fw/fw-softmac/2.13.12.0.arm')
md5sums=('ff7536af2092b1c4b21315bd103ef4c4') md5sums=('ff7536af2092b1c4b21315bd103ef4c4')
build() { build() {
mkdir -p $startdir/pkg/usr/lib/firmware/isl3890/ mkdir -p ${pkgdir}/usr/lib/firmware/isl3890/
install -m644 * $startdir/pkg/usr/lib/firmware/isl3890/isl3890 install -m644 * ${pkgdir}/usr/lib/firmware/isl3890/isl3890
} }
...@@ -61,67 +61,67 @@ md5sums=('3b83ef96387f14655fc854ddc3c6bd57' ...@@ -61,67 +61,67 @@ md5sums=('3b83ef96387f14655fc854ddc3c6bd57'
'dc8502850eab9e1ff330a12d7ca18a19') 'dc8502850eab9e1ff330a12d7ca18a19')
build() { build() {
cd $startdir/pkg cd ${pkgdir}
mkdir -p usr/share/licenses/common mkdir -p usr/share/licenses/common
cd usr/share/licenses/common cd usr/share/licenses/common
mkdir APACHE mkdir APACHE
cp $startdir/src/apache-2.0.txt APACHE/license.txt cp ${srcdir}/apache-2.0.txt APACHE/license.txt
mkdir CCPL mkdir CCPL
cp $startdir/src/cc-by-3.0.txt CCPL/ cp ${srcdir}/cc-by-3.0.txt CCPL/
cp $startdir/src/cc-by-nc-3.0.txt CCPL/ cp ${srcdir}/cc-by-nc-3.0.txt CCPL/
cp $startdir/src/cc-by-nc-nd-3.0.txt CCPL/ cp ${srcdir}/cc-by-nc-nd-3.0.txt CCPL/
cp $startdir/src/cc-by-nc-sa-3.0.txt CCPL/ cp ${srcdir}/cc-by-nc-sa-3.0.txt CCPL/
cp $startdir/src/cc-by-nd-3.0.txt CCPL/ cp ${srcdir}/cc-by-nd-3.0.txt CCPL/
cp $startdir/src/cc-by-sa-3.0.txt CCPL/ cp ${srcdir}/cc-by-sa-3.0.txt CCPL/
cp $startdir/src/cc-readme.txt CCPL/ cp ${srcdir}/cc-readme.txt CCPL/
mkdir CDDL mkdir CDDL
cp $startdir/src/cddl-1.0.txt CDDL/license.txt cp ${srcdir}/cddl-1.0.txt CDDL/license.txt
mkdir CPL mkdir CPL
cp $startdir/src/cpl-1.0.txt CPL/license.txt cp ${srcdir}/cpl-1.0.txt CPL/license.txt
mkdir EPL mkdir EPL
cp $startdir/src/eclipse-1.0.txt EPL/license.txt cp ${srcdir}/eclipse-1.0.txt EPL/license.txt
mkdir {GPL2,GPL3} mkdir {GPL2,GPL3}
cp $startdir/src/gpl-2.0.txt GPL2/license.txt cp ${srcdir}/gpl-2.0.txt GPL2/license.txt
cp $startdir/src/gpl-3.0.txt GPL3/license.txt cp ${srcdir}/gpl-3.0.txt GPL3/license.txt
ln -s GPL2 GPL ln -s GPL2 GPL
mkdir {FDL1.2,FDL1.3} mkdir {FDL1.2,FDL1.3}
cp $startdir/src/fdl-1.2.txt FDL1.2/license.txt cp ${srcdir}/fdl-1.2.txt FDL1.2/license.txt
cp $startdir/src/fdl-1.3.txt FDL1.3/license.txt cp ${srcdir}/fdl-1.3.txt FDL1.3/license.txt
ln -s FDL1.2 FDL ln -s FDL1.2 FDL
mkdir {LGPL2.1,LGPL3} mkdir {LGPL2.1,LGPL3}
cp $startdir/src/lgpl-2.1.txt LGPL2.1/license.txt cp ${srcdir}/lgpl-2.1.txt LGPL2.1/license.txt
cp $startdir/src/lgpl-3.0.txt LGPL3/license.txt cp ${srcdir}/lgpl-3.0.txt LGPL3/license.txt
ln -s LGPL2.1 LGPL ln -s LGPL2.1 LGPL
mkdir LPPL mkdir LPPL
cp $startdir/src/lppl.txt LPPL/license.txt cp ${srcdir}/lppl.txt LPPL/license.txt
mkdir MPL mkdir MPL
cp $startdir/src/MPL-1.1.txt MPL/license.txt cp ${srcdir}/MPL-1.1.txt MPL/license.txt
mkdir PerlArtistic mkdir PerlArtistic
cp $startdir/src/perlartistic.txt PerlArtistic/license.txt cp ${srcdir}/perlartistic.txt PerlArtistic/license.txt
mkdir PHP mkdir PHP
cp $startdir/src/php-3.0.txt PHP/license.txt cp ${srcdir}/php-3.0.txt PHP/license.txt
mkdir PSF mkdir PSF
cp $startdir/src/python-2.txt PSF/license.txt cp ${srcdir}/python-2.txt PSF/license.txt
mkdir RALINK mkdir RALINK
cp $startdir/src/LICENSE.ralink-firmware.txt RALINK/license.txt cp ${srcdir}/LICENSE.ralink-firmware.txt RALINK/license.txt
mkdir RUBY mkdir RUBY
cp $startdir/src/ruby-license.txt RUBY/license.txt cp ${srcdir}/ruby-license.txt RUBY/license.txt
mkdir ZPL mkdir ZPL
cp $startdir/src/ZopePublicLicense.txt ZPL/license.txt cp ${srcdir}/ZopePublicLicense.txt ZPL/license.txt
} }
#!/bin/bash #!/bin/bash
cat_patch() { cat_patch() {
file=${startdir}/src/$(basename ${1}) file=${srcdir}/$(basename ${1})
ftype=$(file -bizL "${file}") ftype=$(file -bizL "${file}")
case "$ftype" in case "$ftype" in
*application/x-gzip*) *application/x-gzip*)
...@@ -19,10 +19,10 @@ get_file() { ...@@ -19,10 +19,10 @@ get_file() {
if [ "${file}" != "${1}" ]; then if [ "${file}" != "${1}" ]; then
cd ${SRCDEST} cd ${SRCDEST}
[ ! -f ${file} ] && wget -c ${1} [ ! -f ${file} ] && wget -c ${1}
cd ${startdir}/src cd ${srcdir}
ln -s ../../_sources/${file} . ln -s ../../_sources/${file} .
else else
cd ${startdir}/src cd ${srcdir}
ln -s ../patches/${file} . ln -s ../patches/${file} .
fi fi
cd ${OPWD} cd ${OPWD}
...@@ -34,8 +34,8 @@ source PATCHCFG ...@@ -34,8 +34,8 @@ source PATCHCFG
export SRCNAME export SRCNAME
export startdir=${PWD} export startdir=${PWD}
mkdir ${startdir}/src mkdir ${srcdir}
cd ${startdir}/src cd ${srcdir}
get_file ${SRC} get_file ${SRC}
bsdtar -xf $(basename ${SRC}) bsdtar -xf $(basename ${SRC})
...@@ -55,7 +55,7 @@ post_apply ...@@ -55,7 +55,7 @@ post_apply
rm -v $(find . -type f -name '*.orig') rm -v $(find . -type f -name '*.orig')
cd ${startdir}/src cd ${srcdir}
diff -Nur ${SRCORIG} ${SRCNAME} > $startdir/${PATCHNAME} diff -Nur ${SRCORIG} ${SRCNAME} > $startdir/${PATCHNAME}
bzip2 --best $startdir/${PATCHNAME} bzip2 --best $startdir/${PATCHNAME}
md5sum $startdir/${PATCHNAME}.bz2 md5sum $startdir/${PATCHNAME}.bz2
#!/bin/bash #!/bin/bash
cat_patch() { cat_patch() {
file=${startdir}/src/$(basename ${1}) file=${srcdir}/$(basename ${1})
ftype=$(file -bizL "${file}") ftype=$(file -bizL "${file}")
case "$ftype" in case "$ftype" in
*application/x-gzip*) *application/x-gzip*)
...@@ -19,10 +19,10 @@ get_file() { ...@@ -19,10 +19,10 @@ get_file() {
if [ "${file}" != "${1}" ]; then if [ "${file}" != "${1}" ]; then
cd ${SRCDEST} cd ${SRCDEST}
[ ! -f ${file} ] && wget -c ${1} [ ! -f ${file} ] && wget -c ${1}
cd ${startdir}/src cd ${srcdir}
ln -s ../../_sources/${file} . ln -s ../../_sources/${file} .
else else
cd ${startdir}/src cd ${srcdir}
ln -s ../patches/${file} . ln -s ../patches/${file} .
fi fi
cd ${OPWD} cd ${OPWD}
...@@ -33,8 +33,8 @@ source PATCHCFG ...@@ -33,8 +33,8 @@ source PATCHCFG
export SRCNAME export SRCNAME
export startdir=${PWD} export startdir=${PWD}
mkdir ${startdir}/src mkdir ${srcdir}
cd ${startdir}/src cd ${srcdir}
get_file ${SRC} get_file ${SRC}
bsdtar -xf $(basename ${SRC}) bsdtar -xf $(basename ${SRC})
...@@ -54,7 +54,7 @@ post_apply ...@@ -54,7 +54,7 @@ post_apply
rm -v $(find . -type f -name '*.orig') rm -v $(find . -type f -name '*.orig')
cd ${startdir}/src cd ${srcdir}
diff -Nur ${SRCORIG} ${SRCNAME} > $startdir/${PATCHNAME} diff -Nur ${SRCORIG} ${SRCNAME} > $startdir/${PATCHNAME}
bzip2 --best $startdir/${PATCHNAME} bzip2 --best $startdir/${PATCHNAME}
md5sum $startdir/${PATCHNAME}.bz2 md5sum $startdir/${PATCHNAME}.bz2
......
#!/bin/bash #!/bin/bash
cat_patch() { cat_patch() {
file=${startdir}/src/$(basename ${1}) file=${srcdir}/$(basename ${1})
ftype=$(file -bizL "${file}") ftype=$(file -bizL "${file}")
case "$ftype" in case "$ftype" in
*application/x-gzip*) *application/x-gzip*)
...@@ -21,10 +21,10 @@ get_file() { ...@@ -21,10 +21,10 @@ get_file() {
if [ "${file}" != "${1}" ]; then if [ "${file}" != "${1}" ]; then
cd ${SRCDEST} cd ${SRCDEST}
[ ! -f ${file} ] && wget -c ${1} [ ! -f ${file} ] && wget -c ${1}
cd ${startdir}/src cd ${srcdir}
ln -s ../../_sources/${file} . ln -s ../../_sources/${file} .
else else
cd ${startdir}/src cd ${srcdir}
ln -s ../patches/${file} . ln -s ../patches/${file} .
fi fi
cd ${OPWD} cd ${OPWD}
...@@ -35,8 +35,8 @@ source PATCHCFG ...@@ -35,8 +35,8 @@ source PATCHCFG
export SRCNAME export SRCNAME
export startdir=${PWD} export startdir=${PWD}
mkdir ${startdir}/src mkdir ${srcdir}
cd ${startdir}/src cd ${srcdir}
get_file ${SRC} get_file ${SRC}
bsdtar -xf $(basename ${SRC}) bsdtar -xf $(basename ${SRC})
...@@ -56,7 +56,7 @@ post_apply ...@@ -56,7 +56,7 @@ post_apply
rm -v $(find . -type f -name '*.orig') rm -v $(find . -type f -name '*.orig')
cd ${startdir}/src cd ${srcdir}
diff -Nur ${SRCORIG} ${SRCNAME} > $startdir/${PATCHNAME} diff -Nur ${SRCORIG} ${SRCNAME} > $startdir/${PATCHNAME}
bzip2 --best $startdir/${PATCHNAME} bzip2 --best $startdir/${PATCHNAME}
md5sum $startdir/${PATCHNAME}.bz2 md5sum $startdir/${PATCHNAME}.bz2
......
#!/bin/bash #!/bin/bash
cat_patch() { cat_patch() {
file=${startdir}/src/$(basename ${1}) file=${srcdir}/$(basename ${1})
ftype=$(file -bizL "${file}") ftype=$(file -bizL "${file}")
case "$ftype" in case "$ftype" in
*application/x-gzip*) *application/x-gzip*)
...@@ -21,10 +21,10 @@ get_file() { ...@@ -21,10 +21,10 @@ get_file() {
if [ "${file}" != "${1}" ]; then if [ "${file}" != "${1}" ]; then
cd ${SRCDEST} cd ${SRCDEST}
[ ! -f ${file} ] && wget -c ${1} [ ! -f ${file} ] && wget -c ${1}
cd ${startdir}/src cd ${srcdir}
ln -s ../../_sources/${file} . ln -s ../../_sources/${file} .
else else
cd ${startdir}/src cd ${srcdir}
ln -s ../patches/${file} . ln -s ../patches/${file} .
fi fi
cd ${OPWD} cd ${OPWD}
...@@ -35,8 +35,8 @@ source PATCHCFG ...@@ -35,8 +35,8 @@ source PATCHCFG
export SRCNAME export SRCNAME
export startdir=${PWD} export startdir=${PWD}
mkdir ${startdir}/src mkdir ${srcdir}
cd ${startdir}/src cd ${srcdir}
get_file ${SRC} get_file ${SRC}
bsdtar -xf $(basename ${SRC}) bsdtar -xf $(basename ${SRC})
...@@ -56,7 +56,7 @@ post_apply ...@@ -56,7 +56,7 @@ post_apply
rm -v $(find . -type f -name '*.orig') rm -v $(find . -type f -name '*.orig')
cd ${startdir}/src cd ${srcdir}
diff -Nur ${SRCORIG} ${SRCNAME} > $startdir/${PATCHNAME} diff -Nur ${SRCORIG} ${SRCNAME} > $startdir/${PATCHNAME}
bzip2 --best $startdir/${PATCHNAME} bzip2 --best $startdir/${PATCHNAME}
md5sum $startdir/${PATCHNAME}.bz2 md5sum $startdir/${PATCHNAME}.bz2
......
...@@ -13,9 +13,9 @@ md5sums=('4c3d19286a37459a632c7128c92a9857') ...@@ -13,9 +13,9 @@ md5sums=('4c3d19286a37459a632c7128c92a9857')
arch=(i686 x86_64) arch=(i686 x86_64)
build() { build() {
cd $startdir/src/pptp-$pkgver cd ${srcdir}/pptp-$pkgver
sed -i '/CFLAGS/d' Makefile sed -i '/CFLAGS/d' Makefile
sed -i 's|\/bin\/ip|\/usr\/sbin\/ip|g' routing.c sed -i 's|\/bin\/ip|\/usr\/sbin\/ip|g' routing.c
make || return 1 make || return 1
make DESTDIR=$startdir/pkg install make DESTDIR=${pkgdir} install
} }
...@@ -29,7 +29,7 @@ md5sums=('7d5ce3215708e4e9f95cf567a9ee3a12' ...@@ -29,7 +29,7 @@ md5sums=('7d5ce3215708e4e9f95cf567a9ee3a12'
'9cd35ea33b8abdd2e4efec485b05477e') '9cd35ea33b8abdd2e4efec485b05477e')
build() { build() {
cd $startdir/src/acx-$pkgver cd ${srcdir}/acx-$pkgver
patch -p1 -i ../kernel-2.6.27.patch patch -p1 -i ../kernel-2.6.27.patch
patch -p0 -i ../kernel-2.6.30.patch patch -p0 -i ../kernel-2.6.30.patch
patch -p1 -i ../kernel-2.6.31.patch patch -p1 -i ../kernel-2.6.31.patch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment