Skip to content

Instantly share code, notes, and snippets.

Created May 30, 2014 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5d83ac1081fe6af4995c to your computer and use it in GitHub Desktop.
Save anonymous/5d83ac1081fe6af4995c to your computer and use it in GitHub Desktop.
Pkgfile
# Description: Filesystem utilities for btrfs
# URL: http://btrfs.wiki.kernel.org
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: util-linux e2fsprogs lzo
name=btrfs-progs
version=v3.14.2
release=1
source=(https://www.kernel.org/pub/linux/kernel/people/mason/btrfs-progs/$name-$version.tar.xz \
http://obra.se/distfiles/btrfs-man-3.14.2.tar.xz)
build() {
cd $name-$version
sed -i 's/BUILDDIRS = $(patsubst %,build-%,$(SUBDIRS)) build-Documentation/BUILDDIRS = $(patsubst %,build-%,$(SUBDIRS))/g' Makefile
sed -i 's/INSTALLDIRS = $(patsubst %,install-%,$(SUBDIRS)) install-Documentation/INSTALLDIRS = $(patsubst %,install-%,$(SUBDIRS))/g' Makefile
make CFLAGS="$CFLAGS"
make prefix=/usr bindir=/sbin DESTDIR=$PKG install
mv $SRC/usr/man $PKG/usr/man
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment