[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wiggle: add split package (version 1.3) #3920

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
wiggle: add split package (version 1.3)
  • Loading branch information
jannick0 committed Jul 20, 2023
commit 115e51acfc0128f3ebebb4fad6b5a108a2dd6b98
43 changes: 43 additions & 0 deletions wiggle/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
pkgbase=wiggle
pkgname=('wiggle' 'wiggle-devel')
pkgver=1.3
pkgrel=1
pkgdesc='A utility to apply rejected patches and perform word-wise diffs'
arch=('i686' 'x86_64')
url='http://neil.brown.name/wiggle'
license=('GPL2')
source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/neilbrown/${pkgbase}/archive/refs/tags/v${pkgver}.tar.gz")
depends=('ncurses')
makedepends=('gcc' 'ncurses-devel')
sha256sums=('ff92cf0133c1f4dce33563e263cb30e7ddb6f4abdf86d427b1ec1490bec25afa')


build() {
cd "${srcdir}/${pkgbase}-${pkgver}"
make ./${pkgbase} V=1 CWFLAGS='-Wall -Wstrict-prototypes -Wextra'
}

check() {
cd "${srcdir}/${pkgbase}-${pkgver}"
make test
}

package_wiggle() {
cd "${srcdir}/${pkgbase}-${pkgver}"
make install DESTDIR="${pkgdir}"

# install license
install -vDt "${pkgdir}/usr/share/licenses/${pkgname}/" COPYING
}

package_wiggle-devel() {
pkgdesc+=' (devel)'
depends+=('ncurses-devel')

cd "${srcdir}/${pkgbase}-${pkgver}"
install -vDt "${pkgdir}/usr/include/" wiggle.h
install -vDt "${pkgdir}/usr/lib/" 'o/libwiggle.a'

# install license
install -vDt "${pkgdir}/usr/share/licenses/${pkgname}/" COPYING
}