summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemy Marquis2018-08-31 16:18:47 +0200
committerRemy Marquis2018-08-31 16:25:30 +0200
commit2009a6c35e7c7259f15ea094afc3532816b385a5 (patch)
tree7fb9d537e7044bc4b50df1aef7d6326cea6d41ab
downloadaur-2009a6c35e7c7259f15ea094afc3532816b385a5.tar.gz
Initial commit
Libsolv compiled with Arch Linux support only
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD49
2 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f084e85590d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = libsolv-arch-git
+ pkgdesc = A new approach to package dependency solving (Arch Linux support only)
+ pkgver = 0.6.35
+ pkgrel = 1
+ url = https://github.com/openSUSE/libsolv
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = make
+ makedepends = cmake
+ makedepends = expat
+ makedepends = swig
+ makedepends = perl
+ makedepends = python
+ makedepends = ruby
+ optdepends = perl: for perl bindings
+ optdepends = python: for python bindings
+ optdepends = ruby: for ruby bindings
+ provides = libsolv
+ conflicts = libsolv
+ source = git+https://github.com/openSUSE/libsolv.git
+ md5sums = SKIP
+
+pkgname = libsolv-arch-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8b33aabd804
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Spyhawk
+
+pkgname=libsolv-arch-git
+pkgver=0.6.35
+pkgrel=1
+pkgdesc="A new approach to package dependency solving (Arch Linux support only)"
+arch=('i686' 'x86_64')
+url="https://github.com/openSUSE/libsolv"
+license=('BSD')
+makedepends=('git' 'make' 'cmake' 'expat' 'swig'
+ 'perl' 'python' 'ruby')
+optdepends=('perl: for perl bindings'
+ 'python: for python bindings'
+ 'ruby: for ruby bindings')
+provides=('libsolv')
+conflicts=('libsolv')
+source=('git+https://github.com/openSUSE/libsolv.git')
+md5sums=('SKIP')
+_gitname="libsolv"
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ echo $(git describe --always | sed -r 's/-/./g')
+}
+
+build() {
+ cd "$srcdir/$_gitname"
+
+ cmake -D CMAKE_INSTALL_PREFIX=/usr \
+ -D ARCHLINUX=1 \
+ -D ENABLE_PERL=1 \
+ -D ENABLE_PYTHON=1 \
+ -D ENABLE_RUBY=1 \
+ .
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+ make DESTDIR="$pkgdir/" install
+
+ # cmake fix (see GH#56)
+ mkdir -p $pkgdir/usr/lib/cmake/LibSolv
+ mv $pkgdir/usr/share/cmake/Modules/FindLibSolv.cmake $pkgdir/usr/lib/cmake/LibSolv/LibSolvConfig.cmake
+
+ # hacky lib64 symlink fix
+ mv $pkgdir/usr/lib64/* $pkgdir/usr/lib/
+ rmdir $pkgdir/usr/lib64
+}