Created
May 30, 2014 19:29
-
-
Save anonymous/5d83ac1081fe6af4995c to your computer and use it in GitHub Desktop.
Pkgfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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