summaryrefslogtreecommitdiffstats
path: root/base/pkg-get/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'base/pkg-get/Pkgfile')
-rw-r--r--base/pkg-get/Pkgfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/base/pkg-get/Pkgfile b/base/pkg-get/Pkgfile
new file mode 100644
index 000000000..7fa207258
--- /dev/null
+++ b/base/pkg-get/Pkgfile
@@ -0,0 +1,29 @@
+# Description: Package management tool for CRUX Linux
+# URL: http://www.varlock.com
+# Maintainer: Simone Rota, sip at crux dot nu
+# Packager: Simone Rota, sip at crux dot nu
+# Depends on:
+
+name=pkg-get
+version=0.4.5
+release=3
+source=(http://www.varlock.com/files/$name-$version.tar.gz \
+ $name.patch pkg-get.conf syn)
+
+build() {
+ARCH_=`uname -m`
+ cd $name-$version
+ patch -p1 < ../$name.patch
+ make PREFIX=$PKG/usr CFGDIR=$PKG/etc install
+ install -m 755 ../syn $PKG/usr/bin/syn
+ sed -i "s|CRUX Packages|Paquets NuTyX Architecture $ARCH_|g" $PKG/usr/bin/pkg-repgen
+ sed -i "s|Generated by|Généré par|g" $PKG/usr/bin/pkg-repgen
+ sed -i "s|Port|Nom|" $PKG/usr/bin/pkg-repgen
+ sed -i "s|Last modified|Dernière compilation|" $PKG/usr/bin/pkg-repgen
+ sed -i "s| package| paquet|g" $PKG/usr/bin/pkg-repgen
+ sed -i "s| on | le |" $PKG/usr/bin/pkg-repgen
+install -m644 ../pkg-get.conf $PKG/etc/pkg-get.conf
+sed -i "s/uname-m/$ARCH_/" $PKG/etc/pkg-get.conf
+sed -i "s/uname-m/$ARCH_/" $PKG/usr/bin/syn
+}
+