diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-01-13 19:07:44 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-01-13 19:07:44 +0000 |
commit | 39abdabd4f1d4296534cb27d2cf4aeda937122f3 (patch) | |
tree | 6cc5152d3804830175708c198857b9dc518fdba0 /main/rxmtp/APKBUILD | |
parent | 5f2f422fbe64f0cd09d6c441e587bae2ab6edda2 (diff) | |
download | aports-39abdabd4f1d4296534cb27d2cf4aeda937122f3.tar.bz2 aports-39abdabd4f1d4296534cb27d2cf4aeda937122f3.tar.xz |
main/rxmtp: fix musl build
Diffstat (limited to 'main/rxmtp/APKBUILD')
-rw-r--r-- | main/rxmtp/APKBUILD | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/main/rxmtp/APKBUILD b/main/rxmtp/APKBUILD index 4a666743b3..787b2d4061 100644 --- a/main/rxmtp/APKBUILD +++ b/main/rxmtp/APKBUILD @@ -2,25 +2,42 @@ # Maintainer: Timo Teras <timo.teras@iki.fi> pkgname=rxmtp pkgver=1.1.3 -pkgrel=2 +pkgrel=3 pkgdesc="Rewrite and eXchange smtp proxy" url="http://dev.alpinelinux.org/alpine/rxmtp" -arch="x86" +arch="all" license="GPL" depends="" makedepends="" install= subpackages="" -source="http://dev.alpinelinux.org/alpine/$pkgname/$pkgname-$pkgver.tar.gz" +source="http://dev.alpinelinux.org/alpine/$pkgname/$pkgname-$pkgver.tar.gz + fix-getline-clash.patch" + +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} build() { - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" make PREFIX=/usr || return 1 } package() { - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" make PREFIX=/usr DESTDIR="$pkgdir" install } -md5sums="4b4fe71ed690251de6ee6ad58223d7a7 rxmtp-1.1.3.tar.gz" +md5sums="4b4fe71ed690251de6ee6ad58223d7a7 rxmtp-1.1.3.tar.gz +d6b781fce6fa6b463f4cd6762adf3575 fix-getline-clash.patch" +sha256sums="28bf8547e5fbbae6cbad0ed403cfe80c2bb558a97e4eae64dd6307a27d48eea4 rxmtp-1.1.3.tar.gz +78d79c9526bdea950293cd75edd0acba0430d9b2e26fb57e8b85dcf4f0cae8e6 fix-getline-clash.patch" +sha512sums="6cc470095fb175b2f7bee9d86168e38ad072c8a27c29aa715a915bc3b4977d0deb02f10c930889a4ec0568537b6a1e5e349346872ef5b28708fcde4b662d72d7 rxmtp-1.1.3.tar.gz +0602d1d77f1b8cb9b70b5636a971fcc9e8db18be70b91937b031bdd32b7f2a54ad0eaac3ad55d95e76066b03719c5c34816f45a07ef88046e9455210c5ad03c3 fix-getline-clash.patch" |