1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-24 01:22:18 -05:00

Add createrepo

This commit is contained in:
Travis Burtrum 2016-11-09 11:34:20 -05:00
parent 39841a1e03
commit 6c35df65cb
14 changed files with 342 additions and 0 deletions

21
src/createrepo/.SRCINFO Normal file
View File

@ -0,0 +1,21 @@
pkgbase = createrepo
pkgdesc = Create rpm-metadata formatted package repositories
pkgver = 0.10.4
pkgrel = 1
url = https://github.com/rpm-software-management/createrepo
arch = any
license = GPL
checkdepends = pychecker
makedepends = bash-completion
depends = deltarpm
depends = libxml2
depends = python2
depends = python2-pyliblzma
depends = rpm-org
depends = yum
depends = yum-metadata-parser
source = https://github.com/rpm-software-management/createrepo/archive/createrepo-0-10-4.tar.gz
md5sums = d5a31a4a075010d5c2e51fbf631a368f
pkgname = createrepo

37
src/createrepo/PKGBUILD Normal file
View File

@ -0,0 +1,37 @@
pkgname=createrepo
pkgver=0.10.4
pkgrel=1
pkgdesc="Create rpm-metadata formatted package repositories"
arch=('any')
url="https://github.com/rpm-software-management/$pkgname"
license=('GPL')
depends=('deltarpm' 'libxml2' 'python2' 'python2-pyliblzma' 'rpm-org'
'yum' 'yum-metadata-parser')
makedepends=('bash-completion')
checkdepends=('pychecker')
source=("$url/archive/$pkgname-${pkgver//./-}.tar.gz")
md5sums=('d5a31a4a075010d5c2e51fbf631a368f')
prepare() {
mv "$pkgname-$pkgname-${pkgver//./-}" "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
find -type f | xargs sed -e 's|#! */usr/bin/python|&2|' -i
}
build() {
cd "$pkgname-$pkgver"
make PYTHON=python2
}
check() {
cd "$pkgname-$pkgver"
make check
}
package() {
cd "$pkgname-$pkgver"
make PYTHON=python2 DESTDIR="$pkgdir/" install
}
# vim: set ft=sh ts=4 sw=4 noet:

21
src/deltarpm/.SRCINFO Normal file
View File

@ -0,0 +1,21 @@
# Generated by mksrcinfo v8
# Sun Jan 31 22:39:31 UTC 2016
pkgbase = deltarpm
pkgdesc = Create deltas between rpms
pkgver = 3.6.1
pkgrel = 1
url = https://github.com/rpm-software-management/deltarpm
arch = i686
arch = x86_64
license = BSD
makedepends = python2
makedepends = python
depends = rpm-org
depends = zlib
optdepends = python2: for python2 module
optdepends = python: for python3 module
source = deltarpm-3.6.1.tar.gz::https://github.com/rpm-software-management/deltarpm/archive/3.6.1.tar.gz
md5sums = c48086229bdfcf5af890f104231180c6
pkgname = deltarpm

40
src/deltarpm/PKGBUILD Normal file
View File

@ -0,0 +1,40 @@
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Michael Eckert <michael.eckert@linuxmail.org>
pkgname=deltarpm
pkgver=3.6.1
pkgrel=1
pkgdesc="Create deltas between rpms"
arch=('i686' 'x86_64')
license=('BSD')
url="https://github.com/rpm-software-management/$pkgname"
depends=('rpm-org' 'zlib')
makedepends=('python2' 'python')
optdepends=('python2: for python2 module'
'python: for python3 module')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
md5sums=('c48086229bdfcf5af890f104231180c6')
build() {
cd "$pkgname-$pkgver"
make PYTHONS='python2 python' \
prefix=/usr \
zlibbundled='' \
zlibldflags='-lz' \
zlibcppflags='' \
all python
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" \
PYTHONS='python2 python' \
prefix=/usr \
install
install -D -m644 README "$pkgdir/usr/share/doc/$pkgname/README"
install -D -m644 LICENSE.BSD "$pkgdir/usr/share/licenses/$pkgname/LICENSE.BSD"
}
# vim: set ft=sh ts=4 sw=4 noet:

View File

@ -0,0 +1,17 @@
pkgbase = python2-pyliblzma
pkgdesc = Python 2 bindings for liblzma
pkgver = 0.5.3
pkgrel = 7
url = https://pypi.python.org/pypi/pyliblzma
arch = i686
arch = x86_64
license = LGPL3
makedepends = python2-setuptools
depends = python2
depends = xz
source = https://pypi.python.org/packages/source/p/pyliblzma/pyliblzma-0.5.3.tar.bz2
sha256sums = 08d762f36d5e59fb9bb0e22e000c300b21f97e35b713321ee504cfb442667957
sha512sums = 272983aac426e86d6d636ccba4fe78a07d7282560081df937114162bfd317bd8023814693b8d473d0f7884e38a968ebeaf8f954a5a27c1f7e5da084f3fd05c65
pkgname = python2-pyliblzma

View File

@ -0,0 +1,39 @@
# Maintainer: William J. Bowman <aur@williamjbowman.com>
# Contributor: Levente Polyak <levente[at]leventepolyak[dot]net>
# Contributor: Daniel Strandberg <esodax!nospam!@gmail.com>
_relname=pyliblzma
pkgname=python2-${_relname}
pkgver=0.5.3
pkgrel=7
pkgdesc='Python 2 bindings for liblzma'
arch=('i686' 'x86_64')
url='https://pypi.python.org/pypi/pyliblzma'
license=('LGPL3')
depends=('python2' 'xz')
makedepends=('python2-setuptools')
source=(https://pypi.python.org/packages/source/p/${_relname}/${_relname}-${pkgver}.tar.bz2)
sha256sums=('08d762f36d5e59fb9bb0e22e000c300b21f97e35b713321ee504cfb442667957')
sha512sums=('272983aac426e86d6d636ccba4fe78a07d7282560081df937114162bfd317bd8023814693b8d473d0f7884e38a968ebeaf8f954a5a27c1f7e5da084f3fd05c65')
prepare() {
cd ${_relname}-${pkgver}
sed -e 's/env python$/env python2/g' -i liblzma.py
}
build() {
cd ${_relname}-${pkgver}
python2 setup.py build
}
check() {
cd ${_relname}-${pkgver}
python2 setup.py test
}
package() {
cd ${_relname}-${pkgver}
python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr
}
# vim:ts=2:sw=2:et:

View File

@ -0,0 +1,19 @@
# Generated by mksrcinfo v8
# Sat Aug 27 03:50:01 UTC 2016
pkgbase = yum-metadata-parser
pkgdesc = C-based metadata parser to quickly parse xml metadata into sqlite databases.
pkgver = 1.1.4
pkgrel = 10
url = http://yum.baseurl.org/download/yum-metadata-parser/
arch = i686
arch = x86_64
license = GPL
makedepends = python2-pip
depends = python2
depends = libxml2
depends = glib2
source = http://yum.baseurl.org/download/yum-metadata-parser/yum-metadata-parser-1.1.4.tar.gz
sha256sums = f1560a284541feb720c3ae35b6b31f80c2be5cb9ca86b3a1ee9459846f821ada
pkgname = yum-metadata-parser

4
src/yum-metadata-parser/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*.tar.gz
*.pkg.tar.xz
pkg/
src/

View File

@ -0,0 +1,24 @@
# Maintainer: Lukas Sabota <LTsmooth42 at gmail dot com>
# Contributor: Patrick McCarty <pnorcks at gmail dot com>
# Contributor: Mariusz Libera <mariusz.libera@gmail.com>
# Contributor: Chris Tusa <linisys@gmail.com>
# Contributor: Thore Bunde <root [at] netpimp [dot] de>
pkgname='yum-metadata-parser'
pkgver='1.1.4'
pkgrel=10
pkgdesc='C-based metadata parser to quickly parse xml metadata into sqlite databases.'
arch=('i686' 'x86_64')
license=('GPL')
url='http://yum.baseurl.org/download/yum-metadata-parser/'
depends=('python2' 'libxml2' 'glib2')
makedepends=('python2-pip')
source=('http://yum.baseurl.org/download/yum-metadata-parser/yum-metadata-parser-1.1.4.tar.gz')
sha256sums=('f1560a284541feb720c3ae35b6b31f80c2be5cb9ca86b3a1ee9459846f821ada')
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
pip2 install . --isolated --root="${pkgdir}" --no-deps --ignore-installed --build .
}

26
src/yum/.AURINFO Normal file
View File

@ -0,0 +1,26 @@
pkgbase = yum
pkgdesc = a popular channel based package manager for RPM distros.
pkgver = 3.4.3
pkgrel = 5
url = http://yum.baseurl.org/
arch = i686
arch = x86_64
groups = system
license = GPL
depends = python2
depends = intltool
depends = urlgrabber
depends = rpm-org
depends = python2-pysqlite
depends = yum-metadata-parser
depends = python2-iniparse
depends = python2-pyliblzma
source = http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz
source = http://pkgs.fedoraproject.org/cgit/yum.git/plain/yum-HEAD.patch?h=f21
source = yum0.patch
md5sums = 7c8ea8beba5b4e7fe0c215e4ebaa26ed
md5sums = 057b511555104257c4422c54fb4ed089
md5sums = 5c7dbcac530ec6efdf1979a256289c7d
pkgname = yum

26
src/yum/.SRCINFO Normal file
View File

@ -0,0 +1,26 @@
pkgbase = yum
pkgdesc = a popular channel based package manager for RPM distros.
pkgver = 3.4.3
pkgrel = 6
url = http://yum.baseurl.org/
arch = i686
arch = x86_64
groups = system
license = GPL
depends = python2
depends = intltool
depends = urlgrabber
depends = rpm-org
depends = python2-pysqlite
depends = yum-metadata-parser
depends = python2-iniparse
depends = python2-pyliblzma
source = http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz
source = yum.patch::http://pkgs.fedoraproject.org/cgit/yum.git/plain/yum-HEAD.patch?h=f21
source = remove-init-dir-makefile.patch
md5sums = 7c8ea8beba5b4e7fe0c215e4ebaa26ed
md5sums = 3ed35721daf75fd56590bd2d2b993ddc
md5sums = 14d68bd689ea76a44567bc2dd0e64cb1
pkgname = yum

3
src/yum/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*gz
*xz
yum.patch

53
src/yum/PKGBUILD Normal file
View File

@ -0,0 +1,53 @@
# Maintainer : Achilleas Pipinellis <axilleas archlinux info>
# Contributor: William Giokas <1007380@gmail.com>
# Contributor: Fernando M f[at]beford.net
# Contributor: Ivo Benner <ivo.benner[at]web.de>
# Contributor: Luka Perkov <archlinux <at> lukaperkov <dOt> net>
# Contributor: Rob Taylor <robtaylor[at]floopily.org>
pkgname=yum
pkgver=3.4.3
pkgrel=6
pkgdesc="a popular channel based package manager for RPM distros."
arch=('i686' 'x86_64')
license=('GPL')
url="http://yum.baseurl.org/"
groups=('system')
depends=('python2' 'intltool' 'urlgrabber' 'rpm-org' 'python2-pysqlite' 'yum-metadata-parser' 'python2-iniparse' 'python2-pyliblzma')
source=("http://yum.baseurl.org/download/3.4/yum-${pkgver}.tar.gz"
"yum.patch::http://pkgs.fedoraproject.org/cgit/yum.git/plain/yum-HEAD.patch?h=f21"
'remove-init-dir-makefile.patch')
md5sums=('7c8ea8beba5b4e7fe0c215e4ebaa26ed'
'3ed35721daf75fd56590bd2d2b993ddc'
'14d68bd689ea76a44567bc2dd0e64cb1')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Patch up to Fedora current
patch -p1 < "${srcdir}/yum.patch"
cd "etc"
# Apply patch to remove the RedHat style init script from being installed
patch < "${srcdir}/remove-init-dir-makefile.patch"
}
build() {
# Patching python2 shebangs
sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
$(find ${srcdir} -name '*.py')
sed -i -e "s/PYTHON=python/PYTHON=python2/" "${srcdir}/${pkgname}-${pkgver}/Makefile"
cd "${srcdir}/${pkgname}-${pkgver}"
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" INIT=systemd install
mv "${pkgdir}/usr/sbin/"* "${pkgdir}/usr/bin/"
rmdir "${pkgdir}/usr/sbin/"
}

View File

@ -0,0 +1,12 @@
--- Makefile.dist 2009-01-08 13:36:04.598489682 -0700
+++ Makefile 2009-01-08 13:40:23.116347817 -0700
@@ -13,9 +13,6 @@
mkdir -p $(DESTDIR)/etc/logrotate.d
install -m 644 yum.logrotate $(DESTDIR)/etc/logrotate.d/yum
- mkdir -p $(DESTDIR)/etc/rc.d/init.d
- install -m 755 yum-updatesd.init $(DESTDIR)/etc/rc.d/init.d/yum-updatesd
-
mkdir -p $(DESTDIR)/etc/dbus-1/system.d/
install -m 755 yum-updatesd-dbus.conf $(DESTDIR)/etc/dbus-1/system.d/yum-updatesd.conf