-
Notifications
You must be signed in to change notification settings - Fork 8
/
PKGBUILD
44 lines (40 loc) · 1.38 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
42
43
44
# Maintainer: Chrysostomus @forum.manjaro.org
pkgname=pacli
pkgver=0.9.1
pkgrel=2
pkgdesc="An interactive pacman interface using fzf"
arch=(any)
url="https://github.com/Manjaro-Pek/$pkgname"
license=(GPL2)
depends=('fzf'
'pacman'
'yaourt'
'pacman-mirrorlist'
'sudo'
'gzip'
'downgrade'
'bash')
makedepends=('git')
optdepends=('update-notifier: Automatically get notified when updates are available')
conflicts=('pacli-simple')
source=("git://github.com/Manjaro-Pek/$pkgname")
md5sums=('SKIP')
package () {
cd "$srcdir/$pkgname"
install -dm755 "${pkgdir}/usr/lib/$pkgname"
install -dm755 "${pkgdir}/usr/share/doc/$pkgname"
install -dm755 "${pkgdir}/etc/pacman.d/hooks"
install -Dm755 "$srcdir/$pkgname/pacli" "$pkgdir/usr/bin/pacli"
cp -r lib/* "$pkgdir/usr/lib/$pkgname"
chmod +x "$pkgdir/usr/lib/$pkgname/pacli-description.sh"
ln -s "$pkgdir/usr/lib/$pkgname/pacli-description.sh" "$pkgdir/etc/pacman.d/hooks/pacli-description.sh"
install -Dm644 pacli.help "$pkgdir/usr/share/doc/$pkgname/help"
for lg in {fr,fr}; do #for lg in {fr,de,it,sp}; do
install -Dm644 "pacli.$lg.help" "$pkgdir/usr/share/doc/$pkgname/$lg.help"
done
mkdir -p $pkgdir/usr/share/locale/{de,fr,pl,it}/LC_MESSAGES/
#for lg in {fr,fr}; do
for lg in {fr,it,pl}; do
msgfmt "locale/$lg.po" -o "$pkgdir/usr/share/locale/$lg/LC_MESSAGES/$pkgname.mo"
done
}