blob: 13516e51c39d7a20353808bec7aeaa64df2f4cfc (
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
|
# Maintainer: jasper1378
# Contributor: ZeekSpin
# Contributor: CrunchySnake
_gitname=lua-pam
pkgname=lua-pam-git
pkgver=r12.4820711
pkgrel=4
pkgdesc="A module for lua to use PAM"
arch=(x86_64)
url="https://github.com/RMTT/${_gitname}"
license=('MIT')
depends=(pam lua)
makedepends=(cmake git)
provides=(lua-pam)
install=lua-pam-git.install
source=("git+${url}.git")
sha256sums=(SKIP)
pkgver() {
cd ${_gitname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd ${_gitname}
cmake . -B build
make -C build
}
package() {
cd ${_gitname}
install -Dm 755 build/liblua_pam.so -t "${pkgdir}/usr/lib/${_gitname}"
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|