No need to set build_wrksrc for pkgs using nofetch and do_fetch.

This commit is contained in:
Juan RP 2011-10-14 19:24:20 +02:00
parent 83b70adc30
commit ab0af95d54
6 changed files with 25 additions and 47 deletions

View file

@ -3,7 +3,6 @@ pkgname=go
version=r58 version=r58
revision=1 revision=1
build_style=custom-install build_style=custom-install
build_wrksrc=go-release
short_desc="The Go Programming Language" short_desc="The Go Programming Language"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://golang.org/" homepage="http://golang.org/"
@ -16,8 +15,7 @@ long_desc="
flexible and modular program construction. Go compiles quickly to machine flexible and modular program construction. Go compiles quickly to machine
code yet has the convenience of garbage collection and the power of run-time code yet has the convenience of garbage collection and the power of run-time
reflection. It's a fast, statically typed, compiled language that feels like reflection. It's a fast, statically typed, compiled language that feels like
a dynamically typed, interpreted language. a dynamically typed, interpreted language."
"
nofetch=yes nofetch=yes
noextract=yes noextract=yes
@ -33,25 +31,20 @@ Add_dependency build bison
Add_dependency build gawk Add_dependency build gawk
Add_dependency build glibc-devel Add_dependency build glibc-devel
do_fetch() do_fetch() {
{
local url="https://go.googlecode.com/hg" local url="https://go.googlecode.com/hg"
cd $wrksrc hg clone -u ${version} ${url} ${pkgname}-${version}
hg clone -u ${version} ${url} ${build_wrksrc}
} }
do_build() do_build() {
{ cd ${wrksrc}/src
cd ${wrksrc}/${build_wrksrc}/src
GOROOT="${wrksrc}/${build_wrksrc}" GOROOT="${wrksrc}/${build_wrksrc}"
GOROOT_FINAL="/opt/go/" GOROOT_FINAL="/opt/go/"
bash ./make.bash bash ./make.bash
hg --config extensions.purge= purge . --all hg --config extensions.purge= purge . --all
} }
do_install() do_install() {
{
cd ${wrksrc}/${build_wrksrc}
vmkdir opt/go 755 vmkdir opt/go 755
for i in bin doc misc src lib include pkg;do for i in bin doc misc src lib include pkg;do
vcopy $i opt/go vcopy $i opt/go

View file

@ -2,7 +2,6 @@
pkgname=linux-firmware pkgname=linux-firmware
version="$(date +%Y%m%d)" version="$(date +%Y%m%d)"
build_style=custom-install build_style=custom-install
build_wrksrc=$pkgname
short_desc="Binary firmware blobs for the Linux kernel" short_desc="Binary firmware blobs for the Linux kernel"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.kernel.org/" homepage="http://www.kernel.org/"
@ -24,15 +23,13 @@ ar9170-firmware>=0"
Add_dependency build coreutils Add_dependency build coreutils
Add_dependency build git Add_dependency build git
do_fetch() do_fetch() {
{
url="git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git" url="git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git"
msg_normal " Fetching source from $url ...\n" msg_normal " Fetching source from $url ...\n"
cd ${wrksrc} && git clone $url git clone ${url} ${pkgname}-${version}
} }
do_install() do_install() {
{
install -d ${DESTDIR}/lib/firmware install -d ${DESTDIR}/lib/firmware
install -d ${DESTDIR}/usr/share/licenses/${pkgname} install -d ${DESTDIR}/usr/share/licenses/${pkgname}
cp -a * ${DESTDIR}/lib/firmware cp -a * ${DESTDIR}/lib/firmware

View file

@ -4,11 +4,10 @@ _distver=7.3
_patchver=237 _patchver=237
version=${_distver}.${_patchver} version=${_distver}.${_patchver}
build_style=gnu_configure build_style=gnu_configure
build_wrksrc=vim73
configure_args="--disable-perlinterp --disable-pythoninterp --disable-rubyinterp configure_args="--disable-perlinterp --disable-pythoninterp --disable-rubyinterp
--disable-cscope --disable-workshop --disable-netbeans --disable-sniff --disable-cscope --disable-workshop --disable-netbeans --disable-sniff
--disable-gpm --disable-hangulinput --disable-xim --enable-gui=no --disable-gpm --disable-hangulinput --disable-xim --enable-gui=no
--without-x --enable-multibyte --with-tlib=ncursesw" --without-x --enable-multibyte --with-tlib=ncursesw"
short_desc="Vim editor (vi clone)" short_desc="Vim editor (vi clone)"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
long_desc=" long_desc="
@ -19,6 +18,7 @@ long_desc="
nofetch=yes nofetch=yes
noextract=yes noextract=yes
subpackages="vim-common" subpackages="vim-common"
Add_dependency run glibc Add_dependency run glibc
Add_dependency run ncurses-libs Add_dependency run ncurses-libs
Add_dependency run acl Add_dependency run acl
@ -28,9 +28,7 @@ Add_dependency build ncurses-devel
Add_dependency build acl-devel Add_dependency build acl-devel
Add_dependency build mercurial Add_dependency build mercurial
do_fetch() do_fetch() {
{
local url="https://vim.googlecode.com/hg" local url="https://vim.googlecode.com/hg"
cd ${wrksrc} hg clone -u v7-3-${_patchver} ${url} ${pkgname}-${version}
hg clone -u v7-3-${_patchver} ${url} ${build_wrksrc}
} }

View file

@ -2,8 +2,6 @@
pkgname=xbps-devel pkgname=xbps-devel
version="$(date +%Y%m%d)" version="$(date +%Y%m%d)"
build_style=configure build_style=configure
build_wrksrc="xbps"
configure_script="./configure"
configure_args="--prefix=/ --includedir=/usr/include configure_args="--prefix=/ --includedir=/usr/include
--datadir=/usr/share --mandir=/usr/share/man --with-pie" --datadir=/usr/share --mandir=/usr/share/man --with-pie"
short_desc="The XBPS package system (development branch)" short_desc="The XBPS package system (development branch)"
@ -38,9 +36,8 @@ Add_dependency build libarchive-devel
Add_dependency build openssl-devel Add_dependency build openssl-devel
Add_dependency build libfetch-devel Add_dependency build libfetch-devel
do_fetch() do_fetch() {
{
local url="git://github.com/xtraeme/xbps" local url="git://github.com/xtraeme/xbps"
msg_normal " Fetching source from $url ...\n" msg_normal " Fetching source from $url ...\n"
cd ${wrksrc} && git clone $url git clone ${url} ${pkgname}-${version}
} }

View file

@ -2,7 +2,6 @@
pkgname=xf86-video-ati-git-snapshot pkgname=xf86-video-ati-git-snapshot
version="$(date +%Y%m%d)" version="$(date +%Y%m%d)"
build_style=gnu_configure build_style=gnu_configure
build_wrksrc=${pkgname}
short_desc="Xorg ATI Radeon video driver (git snapshot)" short_desc="Xorg ATI Radeon video driver (git snapshot)"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
long_desc=" long_desc="
@ -32,14 +31,12 @@ Add_dependency build pixman-devel
Add_dependency build xorg-util-macros Add_dependency build xorg-util-macros
Add_dependency build xorg-server-devel Add_dependency build xorg-server-devel
do_fetch() do_fetch() {
{
local url="git://anongit.freedesktop.org/xorg/driver/xf86-video-ati" local url="git://anongit.freedesktop.org/xorg/driver/xf86-video-ati"
msg_normal " Fetching from master git repository...\n" msg_normal " Fetching from master git repository...\n"
cd ${wrksrc} && git clone ${url} ${build_wrksrc} git clone ${url} ${pkgname}-${version}
} }
pre_configure() pre_configure() {
{ ./autogen.sh
cd ${build_wrksrc} && ./autogen.sh
} }

View file

@ -3,7 +3,6 @@ pkgname=xf86-video-nouveau
_distver=0.0.16 _distver=0.0.16
_gitver="$(date +%Y%m%d)" _gitver="$(date +%Y%m%d)"
version=${_distver}.${_gitver} version=${_distver}.${_gitver}
build_wrksrc=nouveau
build_style=gnu_configure build_style=gnu_configure
short_desc="Xorg OpenSource NVIDIA video driver" short_desc="Xorg OpenSource NVIDIA video driver"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
@ -30,15 +29,12 @@ Add_dependency build libudev-devel
Add_dependency build xorg-server-devel Add_dependency build xorg-server-devel
Add_dependency build xorg-util-macros Add_dependency build xorg-util-macros
do_fetch() do_fetch() {
{
local gitrepo="git://anongit.freedesktop.org/nouveau/xf86-video-nouveau" local gitrepo="git://anongit.freedesktop.org/nouveau/xf86-video-nouveau"
msg_normal "Fetching source from git repo at: $gitrepo\n" msg_normal "Fetching source from git repo at: $gitrepo\n"
cd ${wrksrc} && git clone -v --depth 1 $gitrepo ${build_wrksrc} git clone --depth 1 ${gitrepo} ${pkgname}-${version}
} }
pre_configure() pre_configure() {
{ autoreconf -fi
cd ${build_wrksrc} && autoreconf -fi
} }