Permalink
Browse files

makepkg 4.1.2 (new formula)

  • Loading branch information...
nandub authored and MikeMcQuaid committed Jul 6, 2014
1 parent d58cebc commit b85413304a70d1f26a2b3c19bbf3aadf23f097dc
Showing with 31 additions and 0 deletions.
  1. +31 −0 Formula/makepkg.rb
View
@@ -0,0 +1,31 @@
require "formula"
class Makepkg < Formula
homepage "https://wiki.archlinux.org/index.php/makepkg"
url "ftp://ftp.archlinux.org/other/pacman/pacman-4.1.2.tar.gz"
sha1 "ed9a40a9b532bc43e48680826d57518134132538"
depends_on "pkg-config" => :build
depends_on "libarchive" => :build
depends_on "bash"
depends_on "fakeroot"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--sysconfdir=#{etc}"
cd "scripts" do
system "make", "makepkg"
bin.install "makepkg"
end
cd "etc" do
system "make", "makepkg.conf"
etc.install "makepkg.conf"
end
end
test do
(testpath/"PKGBUILD").write("source=(https://androidnetworktester.googlecode.com/files/10kb.txt)")
system "#{bin}/makepkg", "-dg"
end
end

0 comments on commit b854133

Please sign in to comment.