summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e389d2a31a8f655ab116020034391d5739310d98 (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
# Maintainer: Davide Depau <davide@depau.eu>
_pkgname=libglibutil
pkgname=${_pkgname}-git
pkgver=1.0.35.r0.g80575f4
pkgrel=1
pkgdesc="Library of glib utilities"
arch=('i686' 'x86_64')
depends=('glib2')
makedepends=('git' 'make')
url="https://git.sailfishos.org/mer-core/libglibutil"
license=('BSD')
source=(${_pkgname}::git+https://git.merproject.org/mer-core/libglibutil.git)
sha256sums=('SKIP')
provides=("${_pkgname}")
conflicts=("${_pkgname}")

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

build() {
  cd "$srcdir/$_pkgname"
  make KEEP_SYMBOLS=1 release pkgconfig
}

package() {
  cd "$srcdir/$_pkgname"

  msg2 "Packaging library..."
  make DESTDIR="$pkgdir" install
  msg2 "Packaging headers..."
  make DESTDIR="$pkgdir" install-dev

  msg2 "Fixing permissions..."
  cd "$pkgdir/usr/lib"
  chmod +x "$(readlink "libglibutil.so.1")"
}