diff options
author | larchunix | 2015-06-11 22:01:13 +0200 |
---|---|---|
committer | larchunix | 2015-06-11 22:15:11 +0200 |
commit | d408c5f882214cd9fb3f0b5a6e8934a4efed488f (patch) | |
tree | 0310a57d00c56b1dc8981b47afcd10b2723cd085 | |
download | aur-d408c5f882214cd9fb3f0b5a6e8934a4efed488f.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e46dcf2fa3ff --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = dnf + pkgdesc = Package manager forked from Yum, using libsolv as a dependency resolver + pkgver = 1.0.1 + pkgrel = 1 + url = https://github.com/rpm-software-management/dnf + arch = any + license = GPL2 + license = GPL + checkdepends = python-nose + makedepends = cmake + makedepends = python-sphinx + depends = hawkey + depends = libcomps + depends = librepo + depends = rpm-org + depends = python + depends = python-iniparse + depends = python-pygpgme + backup = etc/dnf/automatic.conf + backup = etc/dnf/dnf.conf + source = dnf-1.0.1.tar.gz::https://github.com/rpm-software-management/dnf/archive/dnf-1.0.1-1.tar.gz + md5sums = 6e479df8c89f4872f3380d594e0d1011 + +pkgname = dnf + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1d8f19dccfe9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +pkgname=dnf +pkgver=1.0.1 +pkgrel=1 +pkgdesc="Package manager forked from Yum, using libsolv as a dependency resolver" +arch=('any') +url="https://github.com/rpm-software-management/$pkgname" +license=('GPL2' 'GPL') +depends=('hawkey' 'libcomps' 'librepo' 'rpm-org' + 'python' 'python-iniparse' 'python-pygpgme') +makedepends=('cmake' 'python-sphinx') +checkdepends=('python-nose') +backup=("etc/$pkgname/automatic.conf" + "etc/$pkgname/$pkgname.conf") +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgname-$pkgver-1.tar.gz") +md5sums=('6e479df8c89f4872f3380d594e0d1011') + +prepare() { + cd "$pkgname-$pkgname-$pkgver-1" + rm -rf build + mkdir build +} + +build() { + cd "$pkgname-$pkgname-$pkgver-1"/build + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DPYTHON_DESIRED=3 \ + .. + make + make doc-man +} + +# Tests seem to need a non-empty RPM database installed on the system +#check() { +# cd "$pkgname-$pkgname-$pkgver-1"/build +# make ARGS="-V" test +#} + +package() { + cd "$pkgname-$pkgname-$pkgver-1"/build + make DESTDIR="$pkgdir/" install + + rm "$pkgdir/"usr/bin/yum "$pkgdir/usr/share/man/man8/yum.8" + ln -s $pkgname-3 "$pkgdir/usr/bin/$pkgname" + ln -s $pkgname-automatic-3 "$pkgdir/usr/bin/$pkgname-automatic" + + install -D -m644 ../README.rst "$pkgdir/usr/share/doc/$pkgname/README.rst" +} + +# vim: set ft=sh ts=4 sw=4 noet: |