summaryrefslogtreecommitdiff
path: root/user/libsigsegv/APKBUILD
diff options
context:
space:
mode:
authorLee Starnes <lee@canned-death.us>2020-04-18 05:41:03 +0000
committerLee Starnes <lee@canned-death.us>2020-04-18 09:49:13 +0000
commit509b60329949662ff33bf4b7d2aa0756cb31bd09 (patch)
treee3da9d7eb1a9199115c53035ccd7ebcbaccf4945 /user/libsigsegv/APKBUILD
parentddab973f7c870f6140ed1144671a453ad3fc850d (diff)
downloadpackages-509b60329949662ff33bf4b7d2aa0756cb31bd09.tar.gz
packages-509b60329949662ff33bf4b7d2aa0756cb31bd09.tar.bz2
packages-509b60329949662ff33bf4b7d2aa0756cb31bd09.tar.xz
packages-509b60329949662ff33bf4b7d2aa0756cb31bd09.zip
user/libsigsegv: import from Alpine
Diffstat (limited to 'user/libsigsegv/APKBUILD')
-rw-r--r--user/libsigsegv/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/user/libsigsegv/APKBUILD b/user/libsigsegv/APKBUILD
new file mode 100644
index 000000000..05d266d3a
--- /dev/null
+++ b/user/libsigsegv/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Contributor: Lee Starnes <lee@canned-death.us>
+# Maintainer: Lee Starnes <lee@canned-death.us>
+pkgname=libsigsegv
+pkgver=2.12
+pkgrel=0
+pkgdesc="A library for handling page faults in user mode"
+url="https://www.gnu.org/software/libsigsegv"
+arch="all"
+license="GPL-2.0-or-later"
+depends=""
+makedepends=""
+subpackages="$pkgname-dev"
+source="https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ --enable-shared
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ rm -r "$pkgdir"/usr/include
+}
+
+dev() {
+ install -D -m 0444 "$builddir"/src/sigsegv.h "$subpkgdir"/usr/include/sigsegv.h
+}
+
+sha512sums="27986e8aaf4357ed131032aa7c281a5a28c5759530c62bb76f034aea33959547dcaae805e06347a1f532f0488b72fbbbdac4400f74e8d3f2128511526e8a5913 libsigsegv-2.12.tar.gz"