Files
binary-repo/x11/apps/xedit/ympbuild
T

38 lines
827 B
Bash

#!/usr/bin/env bash
name='xedit'
release='1'
version='1.2.3'
url='https://xorg.freedesktop.org/'
description='Simple text editor for X'
email='akarsu@protonmail.com'
maintainer='akarsu'
license=('custom')
source=(https://xorg.freedesktop.org/archive/individual/app/xedit-$version.tar.xz
xedit.desktop)
depends=(libXaw libXmu libXt libX11)
makedepends=(util-macros)
md5sums=('6c62e9d4e628259fe34f3018cd54873c'
'SKIP')
group=(x11.apps)
uses=()
arch=('x86_64')
cd $name-$version
setup(){
./configure --prefix=/usr \
--libdir=/usr/lib64/
}
build(){
make $jobs
}
package(){
make DESTDIR="$DESTDIR" install $jobs
install -Dm644 COPYING "$DESTDIR/usr/share/licenses/$name/COPYING"
mkdir -p $DESTDIR/usr/share/applications
install ../xedit.desktop $DESTDIR/usr/share/applications
}