Skip to content

Commit

Permalink
eudev (#2501)
Browse files Browse the repository at this point in the history
* eudev

* all the linuxes!

* Update E/eudev/build_tarballs.jl

Co-authored-by: Mosè Giordano <[email protected]>

* Update E/eudev/build_tarballs.jl

Co-authored-by: Mosè Giordano <[email protected]>

Co-authored-by: Mosè Giordano <[email protected]>
  • Loading branch information
bramtayl and giordano authored Feb 7, 2021
1 parent c5ef3f1 commit ffbd3c7
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions E/eudev/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder, Pkg

name = "eudev"
version = v"3.2.9"

# Collection of sources required to complete build
sources = [
ArchiveSource("https://dev.gentoo.org/~blueness/eudev/eudev-3.2.9.tar.gz", "89618619084a19e1451d373c43f141b469c9fd09767973d73dd268b92074d4fc")
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/eudev*
apk add gperf
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target}
make
make install
"""

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = filter!(Sys.islinux, supported_platforms())


# The products that we will ensure are always built
products = [
LibraryProduct("libudev", :libudev),
ExecutableProduct("udevd", :udevd, "sbin"),
ExecutableProduct("udevadm", :udevadm)
]

# Dependencies that must be installed before this package can be built
dependencies = [
Dependency(PackageSpec(name="gperf_jll", uuid="1a1c6b14-54f6-533d-8383-74cd7377aa70"))
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)

0 comments on commit ffbd3c7

Please sign in to comment.