summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikola Hadžić2019-08-06 19:12:36 +0200
committerNikola Hadžić2019-08-06 19:12:36 +0200
commitc189cba0d04292d8ac8cfddaea704dbfca8fdf7c (patch)
treea198c32f1493d8740e5cb131df9d0127f9e7567c
parentb8f5f27d27df82e223c76820e6b7821b15597a6a (diff)
downloadaur-c189cba0d04292d8ac8cfddaea704dbfca8fdf7c.tar.gz
Fixed install
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD17
2 files changed, 12 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fbe44e39f4e..b1e8829776d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,13 @@
pkgbase = marg
pkgdesc = Simple argument handling library for C programs
pkgver = 0.2
- pkgrel = 2
+ pkgrel = 3
url = https://gitlab.com/oktopod11/marg
arch = x86_64
license = LGPL3
provides = marg
source = https://gitlab.com/oktopod11/marg/raw/master/archive/marg-0.2.tar.gz
- sha256sums = 03231369485bd1cf7a083745369f42cce5ce3dc53d46ee480f4a7ad65a974e67
+ sha256sums = 00a6f7dde5f64a57cb4ee8c27656898cffcb0da9a77991c14ae6f93d71d01dfa
pkgname = marg
diff --git a/PKGBUILD b/PKGBUILD
index af3f2b630c8..b731f0ecc75 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Nikola Hadžić <nikola@firemail.cc>
pkgname=marg
pkgver=0.2
-pkgrel=2
+pkgrel=3
epoch=
pkgdesc="Simple argument handling library for C programs"
arch=("x86_64")
@@ -19,12 +19,15 @@ backup=()
options=()
source=("https://gitlab.com/oktopod11/$pkgname/raw/master/archive/$pkgname-$pkgver.tar.gz")
noextract=()
-sha256sums=("03231369485bd1cf7a083745369f42cce5ce3dc53d46ee480f4a7ad65a974e67")
+sha256sums=("00a6f7dde5f64a57cb4ee8c27656898cffcb0da9a77991c14ae6f93d71d01dfa")
+
+build () {
+ cd "$srcdir/$pkgname/"
+ make build
+}
package() {
- mkdir -vp "$pkgdir/usr/include/"
- mkdir -vp "$pkgdir/usr/share/man/man3/"
- cp -rv "$srcdir/$pkgname/lib/" "$pkgdir/usr/include/marg/"
- cp -v "$srcdir/$pkgname/marg.man" "$pkgdir/usr/share/man/man3/marg.3"
- gzip -v "$pkgdir/usr/share/man/man3/marg.3"
+ cd "$srcdir/$pkgname/"
+ make install HEADERDIR="$pkgdir/usr/include/marg/" INSTALLDIR="$pkgdir/usr/lib/"
+ make man MANDIR="$pkgdir/usr/share/man/man3/"
}