Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Lukc
pkg++
Pkgfile
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Pkgfile of Package pkg++
description="A multidistribution packages builder." url="http://devel.upyum.com/pkgxx/" packager="Lukc <XMPP/SMTP: lukc AT upyum DOT com>" maintainer="Lukc <XMPP/SMTP: lukc AT upyum DOT com>" license="GPLv2" longdesc="pkg++ is capable of building packages for dpkg, rpm, pacman, the pkgtools, and many others! It supports useflags, includes, splits, getting sources on a SCM, and many other things. pkg++ uses recipes called Pkgfiles to build packages. They look like a lot to the PKGBUILDs of Arch AUR or Crux's Pkgfiles." name=pkg++ version=0.10.2 # Last stable release. lastver="wcat '$url' | grep '<div id=\"download\">' | sed -e \"s/.*\\\">//;s/<.*//\"" release=1 #use_unstable=(1 "Use the not-yet-stable releases if available.") use_devel=(0 "Use the unreleased development code.") iuse=(unstable devel) # FIXME: "unstable||devel", in the future ? if use unstable; then version=0.11.3 lastver="echo $version" # They might not be always working. fi if use devel; then version=devel lastver="echo devel" # Nothing can be more up to date than “devel” fi if [[ "$version" = "devel" ]]; then source=(git://upyum.com/pkgxx) else source=($url/$name-$version.tar.xz) fi config=(${sysconfdir:-/etc}/pkg++.conf) case $distribution in Mandriva|Fedora|*SuSE) : ${package_manager:=rpm} ;; Arch) : ${package_manager:=pacman} ;; Frugalware) : ${package_manager:=pacman-g2} ;; Debian|Ubuntu) : ${package_manager:=dpkg} ;; Slackware) : ${package_manager:=pkgtools} ;; Crux) : ${package_manager:=pkgutils} ;; esac depends=(zsh ${package_manager}) configure_opts=( --prefix=${prefix:-/usr} --sharedir=${sharedir:-$prefix/share} --sysconfdir=${sysconfdir:-/etc} --mandir=${mandir:-$sharedir/man} --package-manager=${package_manager:-pkgutils} ${configure_opts[@]} ) build() { if [[ "$version" = "devel" ]]; then cd $name else cd $name-$version fi ./configure \ ${configure_opts[@]} pkgmake -B DESTDIR=$PKG install } post_build() { info "Checking the Pkgfile with the package's pkg++." cd "$PKGMK_ROOT" $PKG/$prefix/bin/pkg++ -cp } check() { : }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor