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