summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e731b1117ee108fa197c632bd6bbe20e49ae935 (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: Aseem Athale <athaleaseem@gmail.com>
# Contributor: Davide Depau <davide@depau.eu>
_pkgname=libglibutil
pkgname=${_pkgname}-git
pkgver=1.0.75.r0.g4e11001
pkgrel=1
pkgdesc="Library of glib utilities"
arch=('i686' 'x86_64')
depends=('glib2')
makedepends=('git' 'make')
url="https://github.com/sailfishos/libglibutil"
license=('BSD')
source=(${_pkgname}::git+${url}.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")"
}