blob: fbd42c447ca4f1255cfb2bab49d28f10054727b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: Spyhawk
pkgname=zypper-git
pkgver=1.14.12
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' 'asciidoc')
provides=('zypper' 'apt')
conflicts=('zypper' 'apt')
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
}
|