summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 969907961307fd6571c63d470c28cdeeea773ac5 (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
# shellcheck shell=bash disable=SC2034,SC2154
# Maintainer: Wu Zhenyu <wuzhenyu@ustc.edu>
_pkgname=pseudo
pkgname=$_pkgname-git
pkgver=r420.f9f1278
pkgrel=1
pkgdesc="an analogue to sudo"
arch=(i686 x86_64 arm aarch64)
url=https://git.yoctoproject.org/$_pkgname
depends=(sqlite)
license=(LGPL)
source=("git+$url")
sha256sums=(SKIP)

pkgver() {
	cd "$_pkgname" || return 1
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$_pkgname" || return 1

	./configure --bits=64 --prefix=/usr
}

package() {
	cd "$_pkgname" || return 1

	make DESTDIR="$pkgdir" LIBDIR=/usr/lib install
	install -Dm644 "$srcdir/$_pkgname"/*.1 -t "$pkgdir/usr/share/man/man1"
}