summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Depau2019-05-11 17:44:36 +0200
committerDavide Depau2019-05-11 17:44:36 +0200
commitc6d1f474c94269451f1c4147e8147c761c0e3814 (patch)
tree516f492584bd0c4ece5548e778f0cc9fb89c2923
downloadaur-c6d1f474c94269451f1c4147e8147c761c0e3814.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD38
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f832ad07d5b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = libglibutil-git
+ pkgdesc = Library of glib utilities
+ pkgver = 1.0.35.r0.g80575f4
+ pkgrel = 1
+ url = https://git.sailfishos.org/mer-core/libglibutil
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = make
+ depends = glib2
+ provides = libglibutil
+ conflicts = libglibutil
+ source = libglibutil::git+https://git.merproject.org/mer-core/libglibutil.git
+ sha256sums = SKIP
+
+pkgname = libglibutil-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b2f13b8a941
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}
+
+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")"
+}