29 lines
483 B
Plaintext
29 lines
483 B
Plaintext
#/bin/bash
|
|
|
|
set -e
|
|
|
|
do_pkgconfig() {
|
|
if [ ! -d /usr/lib/pkgconfig ] ; then mkdir -p /usr/lib/pkgconfig; fi
|
|
cat > /usr/lib/pkgconfig/roctracer-proto.pc << EOF
|
|
prefix=/opt/rocm/roctracer
|
|
includedir=\${prefix}/include/ext
|
|
|
|
Name: roctracer-proto
|
|
Version: 1.0.0
|
|
Description: roctracer protocol
|
|
Cflags: -I\${includedir}
|
|
EOF
|
|
}
|
|
|
|
case "$1" in
|
|
configure)
|
|
do_pkgconfig
|
|
;;
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
echo "$1"
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|