summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYurii Kolesnykov2018-12-01 15:27:42 +0100
committerYurii Kolesnykov2018-12-01 15:27:42 +0100
commit108d06520da6dd9d6ee7989caee11e0dc70c0e8b (patch)
tree5e9eb00d78a0400503d8a5f1acedd0d6b7b08a59
downloadaur-108d06520da6dd9d6ee7989caee11e0dc70c0e8b.tar.gz
init, 17.10.1
-rw-r--r--.SRCINFO29
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD41
3 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3e1cc1ac005
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+pkgbase = libzypp
+ pkgdesc = Package, Patch, Pattern, and Product Management
+ pkgver = 17.10.1
+ pkgrel = 1
+ url = https://github.com/openSUSE/libzypp
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = cmake
+ makedepends = boost
+ makedepends = dejagnu
+ makedepends = graphviz
+ makedepends = libxml2
+ makedepends = expat
+ makedepends = gnupg
+ makedepends = rpm-org
+ makedepends = libproxy
+ makedepends = asciidoc
+ depends = libsolv
+ depends = openssl
+ depends = curl
+ depends = libsystemd
+ provides = libzypp
+ source = https://github.com/openSUSE/libzypp/archive/17.10.1.tar.gz
+ md5sums = 3f9bee95c62b82fcf68a009ed9716a90
+
+pkgname = libzypp
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..b56f969fd70
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+src
+pkg
+*.pkg.*
+*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..badb7b52b70
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Yurii Kolesnykov <root@yurikoles.com>
+
+pkgname=libzypp
+pkgver=17.10.1
+pkgrel=1
+pkgdesc="Package, Patch, Pattern, and Product Management"
+arch=('i686' 'x86_64')
+url="https://github.com/openSUSE/libzypp"
+license=('GPL')
+depends=('libsolv' 'openssl' 'curl' 'libsystemd')
+makedepends=('git' 'cmake' 'boost' 'dejagnu' 'graphviz'
+ 'libxml2' 'expat' 'gnupg' 'rpm-org' 'libproxy'
+ 'asciidoc')
+provides=('libzypp')
+source=("https://github.com/openSUSE/libzypp/archive/${pkgver}.tar.gz")
+md5sums=('3f9bee95c62b82fcf68a009ed9716a90')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ cmake -D CMAKE_INSTALL_PREFIX=/usr \
+ -D CMAKE_BUILD_TYPE=Release \
+ -D CMAKE_SKIP_RPATH=1 \
+ -D DISABLE_AUTODOCS=1 \
+ -D DISABLE_LIBPROXY=0 \
+ .
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="$pkgdir/" install
+
+ # cmake fix (see GH#28)
+ mkdir -p $pkgdir/usr/lib/cmake/Zypp
+ mv $pkgdir/usr/share/cmake/Modules/FindZypp.cmake $pkgdir/usr/lib/cmake/Zypp/ZyppConfig.cmake
+ mv $pkgdir/usr/share/cmake/Modules/ZyppCommon.cmake $pkgdir/usr/lib/cmake/Zypp/ZyppCommon.cmake
+
+ # hacky lib64 symlink fix
+ mv $pkgdir/usr/lib64/* $pkgdir/usr/lib/
+ rmdir $pkgdir/usr/lib64
+}