Loading rpm/PKGBUILDdeleted 100644 → 0 +0 −49 Original line number Diff line number Diff line # Maintainer: Sebastien Luttringer <seblu+arch@seblu.net> # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com> # Contributor: Chris Tusa <linisys@gmail.com> pkgname=rpm pkgver=5.3.6 pkgrel=1 pkgdesc="The RedHat Package Manager" arch=('i686' 'x86_64') url="http://rpm5.org/" license=('GPL') groups=('system') depends=('perl' 'python2' 'zlib' 'beecrypt' 'pcre' 'file') makedepends=('cpio' 'gcc' 'make') optdepends=('gnupg') conflicts=("${pkgname}-org" 'rpmextract') options=('!emptydirs') install=rpm.install #source=("http://rpm5.org/files/${pkgname}/${pkgname}-${pkgver%\.[0-9]}/${pkgname}-${pkgver}.tar.gz") source=("rpm2cpio.sh" "$pkgname-$pkgver.src.rpm::http://rpm5.org/files/${pkgname}/${pkgname}-${pkgver%\.[0-9]}/rpm-5.3.6-0.20101201.src.rpm") md5sums=('1850f9872a4803f5165bfd5816274275' 'd4c4967e945609eb6bf751f8d9320bf2') build() { pwd sh rpm2cpio.sh "$pkgname-$pkgver.src.rpm" | cpio -dim tar xf "$pkgname-$pkgver.tar.gz" cd "$pkgname-$pkgver" ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --with-python=python2 \ --without-selinux \ --with-db=/usr/lib \ --with-popt=/usr/lib \ --with-pcre=/usr/lib \ --with-bzip2=/usr/lib \ --with-xz=/usr/lib \ --with-file=/usr/lib make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install } # vim:set ts=2 sw=2 ft=sh et: rpm/rpm2cpio.shdeleted 100644 → 0 +0 −51 Original line number Diff line number Diff line #!/bin/sh pkg=$1 if [ "$pkg" = "" -o ! -e "$pkg" ]; then echo "no package supplied" 1>&2 exit 1 fi leadsize=96 o=`expr $leadsize + 8` set `od -j $o -N 8 -t u1 $pkg` il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` # echo "sig il: $il dl: $dl" sigsize=`expr 8 + 16 \* $il + $dl` o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8` set `od -j $o -N 8 -t u1 $pkg` il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` # echo "hdr il: $il dl: $dl" hdrsize=`expr 8 + 16 \* $il + $dl` o=`expr $o + $hdrsize` EXTRACTOR="dd if=$pkg ibs=$o skip=1" COMPRESSION=`($EXTRACTOR |file -) 2>/dev/null` if echo $COMPRESSION |grep -q gzip; then DECOMPRESSOR=gunzip elif echo $COMPRESSION |grep -q bzip2; then DECOMPRESSOR=bunzip2 elif echo $COMPRESSION |grep -q xz; then DECOMPRESSOR=unxz elif echo $COMPRESSION |grep -q cpio; then DECOMPRESSOR=cat else # Most versions of file don't support LZMA, therefore we assume # anything not detected is LZMA DECOMPRESSOR=`which unlzma 2>/dev/null` case "$DECOMPRESSOR" in /* ) ;; * ) DECOMPRESSOR=`which lzmash 2>/dev/null` case "$DECOMPRESSOR" in /* ) DECOMPRESSOR="lzmash -d -c" ;; * ) DECOMPRESSOR=cat ;; esac ;; esac fi $EXTRACTOR 2>/dev/null | $DECOMPRESSOR Loading
rpm/PKGBUILDdeleted 100644 → 0 +0 −49 Original line number Diff line number Diff line # Maintainer: Sebastien Luttringer <seblu+arch@seblu.net> # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com> # Contributor: Chris Tusa <linisys@gmail.com> pkgname=rpm pkgver=5.3.6 pkgrel=1 pkgdesc="The RedHat Package Manager" arch=('i686' 'x86_64') url="http://rpm5.org/" license=('GPL') groups=('system') depends=('perl' 'python2' 'zlib' 'beecrypt' 'pcre' 'file') makedepends=('cpio' 'gcc' 'make') optdepends=('gnupg') conflicts=("${pkgname}-org" 'rpmextract') options=('!emptydirs') install=rpm.install #source=("http://rpm5.org/files/${pkgname}/${pkgname}-${pkgver%\.[0-9]}/${pkgname}-${pkgver}.tar.gz") source=("rpm2cpio.sh" "$pkgname-$pkgver.src.rpm::http://rpm5.org/files/${pkgname}/${pkgname}-${pkgver%\.[0-9]}/rpm-5.3.6-0.20101201.src.rpm") md5sums=('1850f9872a4803f5165bfd5816274275' 'd4c4967e945609eb6bf751f8d9320bf2') build() { pwd sh rpm2cpio.sh "$pkgname-$pkgver.src.rpm" | cpio -dim tar xf "$pkgname-$pkgver.tar.gz" cd "$pkgname-$pkgver" ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --with-python=python2 \ --without-selinux \ --with-db=/usr/lib \ --with-popt=/usr/lib \ --with-pcre=/usr/lib \ --with-bzip2=/usr/lib \ --with-xz=/usr/lib \ --with-file=/usr/lib make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install } # vim:set ts=2 sw=2 ft=sh et:
rpm/rpm2cpio.shdeleted 100644 → 0 +0 −51 Original line number Diff line number Diff line #!/bin/sh pkg=$1 if [ "$pkg" = "" -o ! -e "$pkg" ]; then echo "no package supplied" 1>&2 exit 1 fi leadsize=96 o=`expr $leadsize + 8` set `od -j $o -N 8 -t u1 $pkg` il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` # echo "sig il: $il dl: $dl" sigsize=`expr 8 + 16 \* $il + $dl` o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8` set `od -j $o -N 8 -t u1 $pkg` il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` # echo "hdr il: $il dl: $dl" hdrsize=`expr 8 + 16 \* $il + $dl` o=`expr $o + $hdrsize` EXTRACTOR="dd if=$pkg ibs=$o skip=1" COMPRESSION=`($EXTRACTOR |file -) 2>/dev/null` if echo $COMPRESSION |grep -q gzip; then DECOMPRESSOR=gunzip elif echo $COMPRESSION |grep -q bzip2; then DECOMPRESSOR=bunzip2 elif echo $COMPRESSION |grep -q xz; then DECOMPRESSOR=unxz elif echo $COMPRESSION |grep -q cpio; then DECOMPRESSOR=cat else # Most versions of file don't support LZMA, therefore we assume # anything not detected is LZMA DECOMPRESSOR=`which unlzma 2>/dev/null` case "$DECOMPRESSOR" in /* ) ;; * ) DECOMPRESSOR=`which lzmash 2>/dev/null` case "$DECOMPRESSOR" in /* ) DECOMPRESSOR="lzmash -d -c" ;; * ) DECOMPRESSOR=cat ;; esac ;; esac fi $EXTRACTOR 2>/dev/null | $DECOMPRESSOR