blob: 5e03bdb1bade6c93f50b8593422196e6d4c1a81c (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer : Yiannis A Ginis <drxspace[at]gmail[dot]com>
pkgname=yalpam-git
_pkgname=yalpam
pkgver=64.b8242b7
pkgrel=1
pkgdesc="Yet another Arch Linux PAckage Manager"
arch=('i686' 'x86_64')
url="https://github.com/drxspace/${_pkgname}"
license=('GPL2')
provides=('yalpam')
depends=(
'xterm'
'yad'
'yaourt'
)
optdepends=(
'lostfiles: Find orphaned files not owned by any Arch packages'
'os-prober: Utility to detect other OSes on a set of drives'
'reflector: A Python 3 module and script to retrieve and filter the latest Pacman mirror list'
)
source=("git+${url}.git")
sha1sums=('SKIP')
options=('strip' '!debug')
pkgver() {
cd "${srcdir}/${_pkgname}/"
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
package() {
# Place files
install -dm755 ${pkgdir}/usr/lib/${_pkgname}
cp "${srcdir}/${_pkgname}/${_pkgname}".sh "${pkgdir}/usr/lib/${_pkgname}/"
cp "${srcdir}/${_pkgname}/"yup.sh "${pkgdir}/usr/lib/${_pkgname}/"
cp "${srcdir}/${_pkgname}/"update-sys.sh "${pkgdir}/usr/lib/${_pkgname}/"
cp "${srcdir}/${_pkgname}/"libfuncs.sh "${pkgdir}/usr/lib/${_pkgname}/"
cp "${srcdir}/${_pkgname}/"LICENSE "${pkgdir}/usr/lib/${_pkgname}/"
# Place desktop entry
install -d "${pkgdir}/usr/share/applications"
desktop-file-install -m 644 --dir "${pkgdir}/usr/share/applications/" "${srcdir}/${_pkgname}/${_pkgname}.desktop"
# Symlink main binaries
install -d "${pkgdir}/usr/bin"
ln -fs "/usr/lib/${_pkgname}/${_pkgname}".sh "${pkgdir}/usr/bin/${_pkgname}"
ln -fs "/usr/lib/${_pkgname}/"yup.sh "${pkgdir}/usr/bin/"yup
ln -fs "/usr/lib/${_pkgname}/"update-sys.sh "${pkgdir}/usr/bin/"update-sys
ln -fs "/usr/lib/${_pkgname}/"libfuncs.sh "${pkgdir}/usr/bin/"libfuncs
# Place license file
install -D -m644 "${pkgdir}/usr/lib/${_pkgname}/"LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE.GPL"
}
|