-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathPKGBUILD
41 lines (37 loc) · 1.37 KB
/
PKGBUILD
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
# Maintainer: Sébastien Luttringer
pkgname=archutils-git
epoch=1
pkgver=1
pkgrel=1
pkgdesc='Seblu Arch Linux Utils'
arch=('any')
url='https://git.seblu.net/archlinux/archutils'
license=('GPL2')
makedepends=('git')
depends=('python' 'bash' 'zsh' 'file' 'gawk' 'pyalpm' 'python-pyelftools' 'dbus'
'python-pygments' 'pacman-contrib')
provides=('archutils' 'kernel-reinstall')
replaces=('kernel-reinstall')
conflicts=('archutils' 'kernel-reinstall' 'bsd-games')
pkgver() {
cd "$startdir"
printf '%s.%(%y%m%d%H%M)T' "$(git rev-list --count HEAD)"
}
package() {
cd "$startdir"
install -dm755 "$pkgdir"/usr/{share/{licenses/$pkgname,libalpm/hooks},bin,lib/munin/plugins}
# install legal stuff
install -m644 COPYRIGHT LICENSE "$pkgdir/usr/share/licenses/$pkgname"
# install binaries
install -m755 atc aurdown go2chroot newpkg sign getpkg pkgbuild2json \
tmpmakepkg reinstallpkgs cleanpkgs checkservices archlinux-update reexec \
kernel-reinstall system-upgrade find-deps move2aur "$pkgdir/usr/bin"
# install munin stuff
install -m755 archlinux-{pacfiles,packages} "$pkgdir/usr/lib/munin/plugins"
# add shortcut, because i'm lazy
ln -s checkservices "$pkgdir/usr/bin/cs"
ln -s system-upgrade "$pkgdir/usr/bin/sup"
# add hooks
install -m644 systemd-daemon-reload.hook "$pkgdir/usr/share/libalpm/hooks/10-systemd-daemon-reload.hook"
}
# vim:set ts=2 sw=2 et: