summaryrefslogtreecommitdiffstats
path: root/base/pkg-get/Pkgfile
blob: 35be7e055b833df153ccbc3e26b1fad039366781 (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
# Description: Un gestionnaire de paquets binaires pour NuTyX léger et rapide
# URL: http://www.nutyx.org
# Maintainer: NuTyX core team
# Packager: guy_

name=pkg-get
version=0.3.2
release=3
source=(syn pkg-get.awk pkg-get-awk.conf pkg-get.po)

PKGMK_KEEP_LOCALES=yes

build() {
   msgfmt pkg-get.po -o pkg-get.mo
   mkdir -p $PKG/usr/bin
   install -m 755 pkg-get.awk $PKG/usr/bin
   install -m 755 syn $PKG/usr/bin/syn
   ln -s pkg-get.awk $PKG/usr/bin/pkg-get
   mkdir -p $PKG/etc
   install -m 664 pkg-get-awk.conf $PKG/etc
   sed -i "s/uname-m/`uname -m`/g" $PKG/etc/pkg-get-awk.conf
   ln -s pkg-get-awk.conf $PKG/etc/pkg-get.conf
   mkdir -p $PKG/usr/share/locale/en/LC_MESSAGES
   install -m 644 pkg-get.mo $PKG/usr/share/locale/en/LC_MESSAGES
}