diff options
author | AUR Archive Bot | 2015-08-18 03:53:07 +0200 |
---|---|---|
committer | AUR Archive Bot | 2015-08-18 03:53:07 +0200 |
commit | 179d564a99f96ca000fd12be0bdaf95ce37183d8 (patch) | |
tree | d0ad5a55921a54a12b72975d12ae6ab0c450dd31 /PKGBUILD | |
download | aur-179d564a99f96ca000fd12be0bdaf95ce37183d8.tar.gz |
Initial AUR Archive commit of 'zypper-git'
(full history will be added later)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..13c909b27363 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Spyhawk + +pkgname=zypper-git +pkgver=1.11.16.4.g9565572 +pkgrel=1 +pkgdesc="Command line software manager using libzypp" +arch=('i686' 'x86_64') +url="https://github.com/openSUSE/zypper" +license=('GPL') +depends=('libzypp-git' 'libxml2' 'procps' 'readline' 'augeas') +makedepends=('git' 'cmake' 'boost') +provides=('zypper') +conflicts=('zypper') +source=('git+https://github.com/openSUSE/zypper.git' + 'make-ZyppCommon-cmake-module-includable.patch') +md5sums=('SKIP' + '526cf13a72658e7a3f2a07253eee07df') +_gitname="zypper" + +pkgver() { + cd "$srcdir/$_gitname" + echo $(git describe --always | sed -r 's/-/./g') +} + +prepare() { + cd "$srcdir/$_gitname" + patch -p1 -i $srcdir/make-ZyppCommon-cmake-module-includable.patch +} + +build() { + cd "$srcdir/$_gitname" + cmake -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_BUILD_TYPE=Release \ + -D LIB=/lib \ + -D ZYPP_PREFIX=/usr \ + . + make +} + +package() { + cd "$srcdir/$_gitname" + make DESTDIR="$pkgdir/" install + + # hacky sbin symlink fix + mv $pkgdir/usr/sbin/* $pkgdir/usr/bin/ + rmdir $pkgdir/usr/sbin +} |