diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 12 insertions, 27 deletions
@@ -1,46 +1,31 @@ # Maintainer: aksr <aksr at t-com dot me> pkgname=dpic-git -pkgver=r20.3073b72 +pkgver=r48.1e982f5 pkgrel=1 -epoch= -pkgdesc="An implementation of the pic \"little language,\" with support for LaTeX, PDF, SVG, Postscript, and xfig 3.2 output." +pkgdesc='An implementation of the pic "little language," with support for LaTeX, PDF, SVG, Postscript, and xfig 3.2 output.' arch=('i686' 'x86_64') url="https://gitlab.com/aplevich/dpic.git" url="https://ece.uwaterloo.ca/~aplevich/dpic/" -license=('BSD') -categories=() -groups=() -depends=() +license=('custom: BSD') makedepends=('git') -optdepends=() -checkdepends=() -provides=() conflicts=("${pkgname%-*}") -replaces=() -backup=() -options=() -changelog= -install= source=("$pkgname::git+https://gitlab.com/aplevich/dpic.git") -noextract=() md5sums=('SKIP') pkgver() { - cd "$srcdir/$pkgname" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "$srcdir/$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { - cd "$srcdir/$pkgname" - ./configure --prefix=/usr - make + cd "$srcdir/$pkgname" + ./configure --prefix=/usr + make } package() { - cd "$srcdir/$pkgname" - make DESTDIR="$pkgdir/usr" install - install -Dm644 README $pkgdir/usr/share/doc/${pkgname%-*}/README - sed '145,171!d' README > LICENSE - install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE + cd "$srcdir/$pkgname" + make DESTDIR="$pkgdir/usr" install + install -D -m644 README $pkgdir/usr/share/doc/${pkgname%-*}/README + install -D -m644 Copyright.txt $pkgdir/usr/share/licenses/${pkgname%-*}/Copyright } - |