summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69bc18b86170f8d9474ab944f838f9ea8441d364 (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
# Maintainer: Frederic Bezies <fredbezies at gmail dot com> 

pkgname=libpamac-git
_pkgname=libpamac
pkgver=11.6.4.r0.g9108cba
pkgrel=2
pkgdesc="Library for Pamac package manager based on libalpm - git version"
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://gitlab.manjaro.org/applications/libpamac"
license=('GPL3')
depends=('pacman>=6.1' 'pacman<6.2' 'appstream-glib' 'polkit' 'archlinux-appstream-data' 'libsoup3' 'appstream')
makedepends=('gettext' 'itstool' 'vala' 'meson' 'ninja' 'gobject-introspection' 'xorgproto' 'asciidoc' 'git')
options=(!emptydirs)
conflicts=('libpamac-aur' 'libpamac-full' 'libpamac-full-dev' 'libpamac')
source=(git+https://gitlab.manjaro.org/applications/libpamac.git)
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $_pkgname
  mkdir -p builddir
  cd builddir
  meson setup --prefix=/usr --sysconfdir=/etc --buildtype=release
  # build
  ninja
}

package() {
  backup=('etc/pamac.conf')
  cd $_pkgname
  cd builddir
  DESTDIR="$pkgdir" ninja install
}

#vim:set ts=2 sw=2 et: